mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
Use CommonAnimPhase instead of async animation
This commit is contained in:
parent
75cc306e9b
commit
77924ae4ce
@ -1,4 +1,5 @@
|
||||
{
|
||||
"id": 600,
|
||||
"graphic": "",
|
||||
"frames": [
|
||||
[
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user