Optional
ppUsed: numberOptional
ppUp: numberOptional
virtual: booleanChecks whether the move can be selected or performed by a Pokemon, without consideration for the move's targets. The move is unusable if it is out of PP, restricted by an effect, or unimplemented.
Pokemon
that would be using this move
Optional
ignorePp: booleanIf true
, skips the PP check
Optional
ignoreRestrictionTags: booleanIf true
, skips the check for move restriction tags (see MoveRestrictionBattlerTag)
true
if the move can be selected and used by the Pokemon, otherwise false
.
Static
loadCopies an existing move or creates a valid PokemonMove object from json representing one
The data for the move to copy
A valid pokemonmove object
Wrapper class for the
Move
class for Pokemon to interact with. These are the moves assigned to aPokemon
object. It links toMove
class via the move ID. Compared toMove
, this class also tracks if a move has received. PP Ups, amount of PP used, and things like that.See
isUsable
- checks if move is restricted, out of PP, or not implemented.getMove
- returnsMove
object by looking it up via ID.usePp
- removes a point of PP from the move.getMovePp
- returns amount of PP a move currently has.getPpRatio
- returns the current PP amount / max PP amount.getName
- returns name ofMove
.