Battle animation improvements

This commit is contained in:
Flashfyre committed 2023-04-13 23:04:51 -04:00
1 parent 791bf3cc49
commit 1b8c8b5a3f
20 files changed
+9333 -13084

No files matched your search

+5
View File
@@ -1,3 +1,4 @@
import { CommandPhase } from "../battle-phases";
import BattleScene, { Button } from "../battle-scene";
import { addTextObject, TextStyle } from "../text";
import { toPokemonUpperCase } from "../utils";
@@ -67,6 +68,10 @@ export default class CommandUiHandler extends UiHandler {
ui.setMode(Mode.PARTY, PartyUiMode.SWITCH);
success = true;
break;
case 3:
(this.scene.getCurrentPhase() as CommandPhase).handleCommand(Command.RUN, 0);
success = true;
break;
}
}
} else {