Attempt fixing stack overflow
parent
76ceed52a3
commit
c49bac094f
|
@ -616,9 +616,6 @@ export function applyPostWeatherLapseAbAttrs(attrType: { new(...args: any[]): Po
|
||||||
if (!pokemon.canApplyAbility())
|
if (!pokemon.canApplyAbility())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (weather.isEffectSuppressed(pokemon.scene))
|
|
||||||
return;
|
|
||||||
|
|
||||||
const ability = pokemon.getAbility();
|
const ability = pokemon.getAbility();
|
||||||
|
|
||||||
const attrs = ability.getAttrs(attrType) as PostWeatherLapseAbAttr[];
|
const attrs = ability.getAttrs(attrType) as PostWeatherLapseAbAttr[];
|
||||||
|
|
|
@ -343,8 +343,8 @@ export abstract class DamagingTrapTag extends TrappedTag {
|
||||||
pokemon.scene.unshiftPhase(new CommonAnimPhase(pokemon.scene, pokemon.isPlayer(), this.commonAnim));
|
pokemon.scene.unshiftPhase(new CommonAnimPhase(pokemon.scene, pokemon.isPlayer(), this.commonAnim));
|
||||||
|
|
||||||
const damage = Math.ceil(pokemon.getMaxHp() / 16);
|
const damage = Math.ceil(pokemon.getMaxHp() / 16);
|
||||||
pokemon.damage(damage);
|
|
||||||
pokemon.scene.unshiftPhase(new DamagePhase(pokemon.scene, pokemon.isPlayer()));
|
pokemon.scene.unshiftPhase(new DamagePhase(pokemon.scene, pokemon.isPlayer()));
|
||||||
|
pokemon.damage(damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue