Gen II: Fix Focus Band with confusion damage

This commit is contained in:
Marty-D 2015-06-06 23:44:26 -04:00
parent 3f997d71dd
commit 301ad94a16

View File

@ -105,6 +105,19 @@ exports.BattleStatuses = {
} else {
this.effectData.time = this.random(2, 6);
}
},
onBeforeMove: function (pokemon) {
pokemon.volatiles.confusion.time--;
if (!pokemon.volatiles.confusion.time) {
pokemon.removeVolatile('confusion');
return;
}
this.add('-activate', pokemon, 'confusion');
if (this.random(2) === 0) {
return;
}
this.directDamage(this.getDamage(pokemon, pokemon, 40));
return false;
}
},
partiallytrapped: {