mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Multi-hit moves end if the user faints during use.
This commit is contained in:
parent
68d5d2e97c
commit
17a6cb4ba8
|
|
@ -127,7 +127,7 @@ exports.BattleScripts = {
|
|||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
for (var i=0; i<hits && target.hp; i++) {
|
||||
for (var i=0; i<hits && target.hp && pokemon.hp; i++) {
|
||||
var moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false) return true;
|
||||
damage += (moveDamage || 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user