Gen I: Fix |-mustrecharge| messages

This commit is contained in:
Annika
2023-03-11 18:10:40 -08:00
parent 866613cbad
commit b03a2b47d2

View File

@@ -207,10 +207,10 @@ export const Scripts: ModdedBattleScriptsData = {
// We remove recharge
if (pokemon.volatiles['mustrecharge']) pokemon.removeVolatile('mustrecharge');
delete pokemon.volatiles['partialtrappinglock'];
} else if (pokemon.hp) {
this.battle.runEvent('AfterMoveSelf', pokemon, target, move);
} else {
if (pokemon.volatiles['mustrecharge']) this.battle.add('-mustrecharge', pokemon);
if (pokemon.hp) this.battle.runEvent('AfterMoveSelf', pokemon, target, move);
}
if (pokemon.volatiles['mustrecharge']) this.battle.add('-mustrecharge', pokemon);
// For partial trapping moves, we are saving the target
if (move.volatileStatus === 'partiallytrapped' && target && target.hp > 0) {