mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
[Bug][Move] Fix move effects not applying with multi-lens
This commit is contained in:
commit
e7f0ea624b
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user