Fix reviver seed causing infinite loop and clear status on revive

This commit is contained in:
Flashfyre committed 2023-10-22 10:41:49 -04:00
1 parent e0065fca7c
commit 08364d9060
2 files changed
+3 -4

No files matched your search

+3 -1
View File
@@ -683,7 +683,9 @@ export class PokemonInstantReviveModifier extends PokemonHeldItemModifier {
const pokemon = args[0] as Pokemon;
pokemon.scene.unshiftPhase(new PokemonHealPhase(pokemon.scene, pokemon.getBattlerIndex(),
Math.max(Math.floor(pokemon.getMaxHp() / 2), 1),getPokemonMessage(pokemon, ` was revived\nby its ${this.type.name}!`), false, false, true));
Math.max(Math.floor(pokemon.getMaxHp() / 2), 1), getPokemonMessage(pokemon, ` was revived\nby its ${this.type.name}!`), false, false, true));
pokemon.resetStatus();
return true;
}