Attempt fixing stack overflow
This commit is contained in:
1 parent
76ceed52a3
commit
c49bac094f
2 files changed
+1
-4
No files matched your search
@@ -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[];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user