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.
This commit is contained in:
Guangcong Luo
2018-11-14 21:45:47 -05:00
parent 09dd5f92ae
commit f75cc7c493

View File

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