mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Add overload for handle command
This commit is contained in:
parent
3497f93141
commit
f678966149
@ -248,6 +248,7 @@ export class CommandPhase extends FieldPhase {
|
|||||||
const playerPokemon = this.getPokemon();
|
const playerPokemon = this.getPokemon();
|
||||||
const ignorePP = isIgnorePP(useMode);
|
const ignorePP = isIgnorePP(useMode);
|
||||||
|
|
||||||
|
let canUse = cursor === -1 || playerPokemon.trySelectMove(cursor, ignorePP);
|
||||||
let canUse = cursor === -1 || playerPokemon.trySelectMove(cursor, ignorePP);
|
let canUse = cursor === -1 || playerPokemon.trySelectMove(cursor, ignorePP);
|
||||||
|
|
||||||
const useStruggle = canUse
|
const useStruggle = canUse
|
||||||
|
Loading…
Reference in New Issue
Block a user