Class: Battle::Move::ShedTail
- Inherits:
-
Substitute
- Object
- Move
- Substitute
- Battle::Move::ShedTail
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Move that put the mon into a substitute and switches it out, giving its sub to the incoming Pokémon
Instance Method Summary collapse
-
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon.
-
#factor ⇒ Integer
The divisor used to calculate the HP cost for creating a substitute (1/4 of max HP).
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
-
#self_user_switch? ⇒ Boolean
Tell if the move is a move that switch the user if that hit.
Methods inherited from Substitute
Instance Method Details
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
6802 6803 |
# File 'docs/5_Battle_10_Move.rb', line 6802 def deal_effect(user, actual_targets) end |
#factor ⇒ Integer
The divisor used to calculate the HP cost for creating a substitute (1/4 of max HP)
6806 6807 |
# File 'docs/5_Battle_10_Move.rb', line 6806 def factor 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
6797 6798 |
# File 'docs/5_Battle_10_Move.rb', line 6797 def move_usable_by_user(user, targets) end |
#self_user_switch? ⇒ Boolean
Tell if the move is a move that switch the user if that hit
6790 6791 |
# File 'docs/5_Battle_10_Move.rb', line 6790 def self_user_switch? end |