Class: Battle::Move::Protect
Overview
Protect move and its variants
Constant Summary collapse
- BYPASS_FAILURE_CHECK_MOVES =
Moves that bypass the failure check
%i[quick_guard wide_guard]
Instance Method Summary collapse
-
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon.
-
#deal_message(user) ⇒ String
Get the message displayed when the move is successfully used.
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
Instance Method Details
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
5429 5430 |
# File 'docs/5_Battle_10_Move.rb', line 5429 def deal_effect(user, actual_targets) end |
#deal_message(user) ⇒ String
Get the message displayed when the move is successfully used
5434 5435 |
# File 'docs/5_Battle_10_Move.rb', line 5434 def (user) end |
#move_usable_by_user(user, targets) ⇒ Boolean
Note:
Thing that prevents the move from being used should be defined by :move_prevention_user Hook
Function that tests if the user is able to use the move
5424 5425 |
# File 'docs/5_Battle_10_Move.rb', line 5424 def move_usable_by_user(user, targets) end |