Multi-hit moves end if the user faints during use.

This commit is contained in:
Marty-D 2012-07-14 13:03:34 -03:00
parent 68d5d2e97c
commit 17a6cb4ba8

View File

@ -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);