mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-11 02:35:33 -05:00
Gen I: Fix |-mustrecharge| messages
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user