Protected
Optional
optionsA container for this attribute's optional parameters
Should this Move
target the user?
If defined, overrides the move's base chance for this secondary effect to trigger.
true
if this effect should apply only upon hitting a target
for the first time when targeting multiple Pokemon
.
User changes its type to a random type that resists the target's last used move
true if the function succeeds
the MoveCondition
or MoveConditionFunc for this Move
Gets the used move's additional effect chance.
Chance is modified by MoveEffectChanceMultiplierAbAttr
and IgnoreMoveEffectsAbAttr
.
Move effect chance value.
Used by the Enemy AI to rank an attack based on a given target
Retrieve the types resisting a given type. Used by Conversion 2
An array populated with Types, or an empty array if no resistances exist (Unknown or Stellar type)
Used by the Enemy AI to rank an attack based on a given user
Attribute used for Conversion 2, to convert the user's type to a random type that resists the target's last used move. Fails if the user already has ALL types that resist the target's last used move. Fails if the opponent has not used a move yet Fails if the type is unknown or stellar
TODO: If a move has its type changed (e.g.
Moves.HIDDEN_POWER
), it will check the new type.