Class: Battle::Effects::Status::Paralysis
- Defined in:
- docs/5_Battle_06_Effects_03_Status_Effects.rb
Overview
Class describing the Paralysis status effect
Instance Method Summary collapse
-
#name ⇒ Symbol
Function giving the name of the effect.
-
#on_move_prevention_user(user, targets, move) ⇒ :prevent?
Function called when we try to use a move as the user (returns :prevent if user fails).
-
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Prevent paralysis from being applied twice.
-
#spd_modifier ⇒ Float, Integer
Give the speed modifier over given to the Pokemon with this effect.
Instance Method Details
#name ⇒ Symbol
Function giving the name of the effect
113 114 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 113 def name end |
#on_move_prevention_user(user, targets, move) ⇒ :prevent?
Function called when we try to use a move as the user (returns :prevent if user fails)
105 106 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 105 def on_move_prevention_user(user, targets, move) end |
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Prevent paralysis from being applied twice
98 99 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 98 def on_status_prevention(handler, status, target, launcher, skill) end |
#spd_modifier ⇒ Float, Integer
Give the speed modifier over given to the Pokemon with this effect
109 110 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 109 def spd_modifier end |