Use CommonAnimPhase instead of async animation

This commit is contained in:
innerthunder 2024-09-19 03:21:15 -07:00
parent 75cc306e9b
commit 77924ae4ce
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{
"id": 600,
"graphic": "",
"frames": [
[

View File

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