Class: Battle::Effects::Status::Asleep
- Defined in:
- docs/5_Battle_06_Effects_03_Status_Effects.rb
Overview
Class describing the Asleep status effect
Constant Summary collapse
- SLEEPING_MOVES =
List of moves that works when the user is asleep
%i[snore sleep_talk]
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 sleep from being applied twice.
Instance Method Details
#name ⇒ Symbol
Function giving the name of the effect
179 180 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 179 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)
175 176 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 175 def on_move_prevention_user(user, targets, move) end |
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Prevent sleep from being applied twice
168 169 |
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 168 def on_status_prevention(handler, status, target, launcher, skill) end |