Update phases.ts

This commit is contained in:
Benjamin Odom 2024-05-13 22:25:49 -05:00
parent cf53bae1f4
commit f4c1f5d30c

View File

@ -2945,7 +2945,7 @@ export class ObtainStatusEffectPhase extends PokemonPhase {
start() {
const pokemon = this.getPokemon();
if (!pokemon.status) {
if (pokemon.trySetStatus(this.statusEffect, false, this.sourcePokemon, 0, null)) {
if (pokemon.trySetStatus(this.statusEffect, false, this.sourcePokemon)) {
if (this.cureTurn)
pokemon.status.cureTurn = this.cureTurn;
pokemon.updateInfo(true);