Attempt fixing stack overflow

This commit is contained in:
Flashfyre 2023-05-02 20:53:06 -04:00
parent 76ceed52a3
commit c49bac094f
2 changed files with 1 additions and 4 deletions

View File

@ -616,9 +616,6 @@ export function applyPostWeatherLapseAbAttrs(attrType: { new(...args: any[]): Po
if (!pokemon.canApplyAbility())
return;
if (weather.isEffectSuppressed(pokemon.scene))
return;
const ability = pokemon.getAbility();
const attrs = ability.getAttrs(attrType) as PostWeatherLapseAbAttr[];

View File

@ -343,8 +343,8 @@ export abstract class DamagingTrapTag extends TrappedTag {
pokemon.scene.unshiftPhase(new CommonAnimPhase(pokemon.scene, pokemon.isPlayer(), this.commonAnim));
const damage = Math.ceil(pokemon.getMaxHp() / 16);
pokemon.damage(damage);
pokemon.scene.unshiftPhase(new DamagePhase(pokemon.scene, pokemon.isPlayer()));
pokemon.damage(damage);
}
return ret;