Attempt fixing stack overflow

pull/1/head
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()) 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[];

View File

@ -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;