mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Gen II: Fix Focus Band with confusion damage
This commit is contained in:
parent
3f997d71dd
commit
301ad94a16
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user