mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
Update battle-anims.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
2d87a2b318
commit
6757893877
@ -1132,7 +1132,6 @@ export abstract class BattleAnim {
|
|||||||
if (priority === 0) {
|
if (priority === 0) {
|
||||||
// Place the sprite in front of the pokemon on the field.
|
// Place the sprite in front of the pokemon on the field.
|
||||||
targetSprite = globalScene.getEnemyField().find(p => p) ?? globalScene.getPlayerField().find(p => p);
|
targetSprite = globalScene.getEnemyField().find(p => p) ?? globalScene.getPlayerField().find(p => p);
|
||||||
// console.log(typeof targetSprite);
|
|
||||||
moveFunc = globalScene.field.moveBelow;
|
moveFunc = globalScene.field.moveBelow;
|
||||||
} else if (priority === 2 && this.bgSprite) {
|
} else if (priority === 2 && this.bgSprite) {
|
||||||
moveFunc = globalScene.field.moveAbove;
|
moveFunc = globalScene.field.moveAbove;
|
||||||
|
Loading…
Reference in New Issue
Block a user