Class: Battle::Effects::Ability::Sturdy
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Sturdy ability
Instance Method Summary collapse
-
#on_damage_prevention(handler, hp, target, launcher, skill) ⇒ :prevent, ...
Function called when a damage_prevention is checked.
-
#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.
-
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive).
Instance Method Details
#on_damage_prevention(handler, hp, target, launcher, skill) ⇒ :prevent, ...
Function called when a damage_prevention is checked
3502 3503 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3502 def on_damage_prevention(handler, hp, target, launcher, skill) end |
#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
3493 3494 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3493 def on_move_ability_immunity(user, target, move) end |
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive)
3510 3511 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3510 def on_post_damage(handler, hp, target, launcher, skill) end |