mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-24 11:10:46 -05:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user