Class: Battle::Effects::Ability::MentalImmunityBase

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Mental Immunity ability effects

Direct Known Subclasses

AromaVeil, Oblivious

Constant Summary collapse

MENTAL_EFFECTS =

List of mental effects

Returns:

  • (Array<Symbol>)
%i[attract encore taunt torment heal_block disable]

Instance Method Summary collapse

Instance Method Details

#on_move_ability_immunity(user, target, move) ⇒ Boolean

Function called when we try to check if the Pokemon is immune to a move due to its effect

Parameters:

Returns:

  • (Boolean) —

    if the target is immune to the move



2013
2014
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2013

def on_move_ability_immunity(user, target, move)
end