Class: Battle::Move::MindBlown
- Inherits:
-
BasicWithSuccessfulEffect
- Object
- Move
- Basic
- BasicWithSuccessfulEffect
- Battle::Move::MindBlown
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Class describing the Mind Blown move
Instance Method Summary collapse
-
#deal_damage(user, actual_targets)
Function that deals the damage to the pokemon.
-
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon.
-
#disable_reason(user) ⇒ #call
Get the reason why the move is disabled.
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
-
#on_move_failure(user, targets, reason)
Event called if the move failed.
Methods inherited from BasicWithSuccessfulEffect
Methods inherited from Basic
Instance Method Details
#deal_damage(user, actual_targets)
Function that deals the damage to the pokemon
4688 4689 |
# File 'docs/5_Battle_10_Move.rb', line 4688 def deal_damage(user, actual_targets) end |
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
4693 4694 |
# File 'docs/5_Battle_10_Move.rb', line 4693 def deal_effect(user, actual_targets) end |
#disable_reason(user) ⇒ #call
Get the reason why the move is disabled
4670 4671 |
# File 'docs/5_Battle_10_Move.rb', line 4670 def disable_reason(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
4677 4678 |
# File 'docs/5_Battle_10_Move.rb', line 4677 def move_usable_by_user(user, targets) end |
#on_move_failure(user, targets, reason)
Event called if the move failed
4683 4684 |
# File 'docs/5_Battle_10_Move.rb', line 4683 def on_move_failure(user, targets, reason) end |