From f75cc7c4934bc77ea3dda446cbf4f528cd0fd9f4 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Wed, 14 Nov 2018 21:45:47 -0500 Subject: [PATCH] Use Tackle as default move animation In the old days, we used to have a white wisp if someone used an unrecognized move. Apparently the current behavior is to crash? Shameful! This defaults to the Tackle animation, which is probably sensible. For self targeting moves, it'll just look like some jumping around, which is workable. --- src/battle-animations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle-animations.ts b/src/battle-animations.ts index 7b3b5b922..54cbf97a4 100644 --- a/src/battle-animations.ts +++ b/src/battle-animations.ts @@ -581,6 +581,10 @@ class BattleScene { runMoveAnim(moveid: ID, participants: Pokemon[]) { if (!this.animating) return; + if (!BattleMoveAnims[moveid]) { + BattleMoveAnims['tackle'].anim(this, participants.map(p => p.sprite)); + return; + } BattleMoveAnims[moveid].anim(this, participants.map(p => p.sprite)); }