Class: Battle::Effects::Ability::NonVolatileStatusImmunityBase

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

Overview

Base class for an ability that prevents and cures a non-volatile status condition on the Creature.

Direct Known Subclasses

Immunity, Insomnia, Limber, MagmaArmor, WaterVeil

Instance Method Summary collapse

Instance Method Details

#on_post_action_event(logic, scene, battlers)

Function called at the end of an action

Parameters:



138
139
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 138

def on_post_action_event(logic, scene, battlers)
end

#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?

Function called when a status_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



132
133
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 132

def on_status_prevention(handler, status, target, launcher, skill)
end

#on_switch_event(handler, who, with)

Function called when a Creature has actually switched with another one

Parameters:



123
124
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 123

def on_switch_event(handler, who, with)
end