From 77924ae4ced54c6dc92b81fac2a78dbe1dba3de4 Mon Sep 17 00:00:00 2001 From: innerthunder Date: Thu, 19 Sep 2024 03:21:15 -0700 Subject: [PATCH] Use CommonAnimPhase instead of async animation --- public/battle-anims/common-powder.json | 1 + src/data/battler-tags.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/battle-anims/common-powder.json b/public/battle-anims/common-powder.json index a56b004c914..dcce27f42b2 100644 --- a/public/battle-anims/common-powder.json +++ b/public/battle-anims/common-powder.json @@ -1,4 +1,5 @@ { + "id": 600, "graphic": "", "frames": [ [ diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 84d3b2b0b8c..373ad50b163 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -834,7 +834,7 @@ export class PowderTag extends BattlerTag { if (pokemon.getMoveType(move) === Type.FIRE) { movePhase.cancel(); - new CommonBattleAnim(CommonAnim.POWDER, pokemon).play(pokemon.scene); + pokemon.scene.unshiftPhase(new CommonAnimPhase(pokemon.scene, pokemon.getBattlerIndex(), pokemon.getBattlerIndex(), CommonAnim.POWDER)); const cancelDamage = new Utils.BooleanHolder(false); applyAbAttrs(BlockNonDirectDamageAbAttr, pokemon, cancelDamage);