Class: Battle::Effects::Ability::GoodAsGold
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Good as Gold ability effect
Constant Summary collapse
- MOVES_AFFECTED =
Returns a list of moves that fail when targeting Good as Gold
%i[memento curse strength_sap]
Instance Method Summary collapse
-
#on_move_prevention_target(user, target, move) ⇒ Boolean
Function called when we try to check if the target evades the move.
-
#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).
Instance Method Details
#on_move_prevention_target(user, target, move) ⇒ Boolean
Function called when we try to check if the target evades the move
1452 1453 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1452 def on_move_prevention_target(user, target, move) 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)
1445 1446 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1445 def on_move_prevention_user(user, targets, move) end |