[Bug][Move] Fix move effects not applying with multi-lens

This commit is contained in:
damocleas 2025-05-11 20:56:00 -04:00 committed by GitHub
commit e7f0ea624b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -905,6 +905,14 @@ export class MoveEffectPhase extends PokemonPhase {
target.destroySubstitute();
target.lapseTag(BattlerTagType.COMMANDED);
// Force `lastHit` to be true if this is a multi hit move with hits left
// `hitsLeft` must be left as-is in order for the message displaying the number of hits
// to display the proper number.
// Note: When Dragon Darts' smart targeting is implemented, this logic may need to be adjusted.
if (!this.lastHit && user.turnData.hitsLeft > 1) {
this.lastHit = true;
}
}
/**