Optionalcondition: AbAttrConditionApplies immunity if this ability grants immunity to the type of the given move.
Pokemon The defending Pokemon.
Whether the ability is passive.
Pokemon The attacking Pokemon.
Move The attacking move.
Utils.BooleanHolder - A holder for a boolean value indicating if the move was cancelled.
[0] Utils.NumberHolder gets set to 0 if move is immuned by an ability.
Rest...args: any[]
Determines whether a Pokemon is immune to a move because of an ability.
See
applyPreDefendgetCondition