mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
add fix for multi hit move
This commit is contained in:
parent
747108f5ef
commit
699dbff763
@ -4942,6 +4942,10 @@ export class PostDamageForceSwitchAbAttr extends PostDamageAbAttr {
|
|||||||
} else if (opponent.turnData.hitsLeft > 1) {
|
} else if (opponent.turnData.hitsLeft > 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (allMoves[enemyLastMoveUsed.move].hasAttr(MultiHitAttr)) {
|
||||||
|
damage = pokemon.turnData.damageTaken;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user