Class: Battle::Move::StealthRock
Overview
Move that inflict Stealth Rock to the enemy bank
Instance Method Summary collapse
-
#calc_factor(target) ⇒ Integer, Float
Calculate the multiplier needed to get the damage factor of the Stealth Rock.
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
Instance Method Details
#calc_factor(target) ⇒ Integer, Float
Calculate the multiplier needed to get the damage factor of the Stealth Rock
6606 6607 |
# File 'docs/5_Battle_10_Move.rb', line 6606 def calc_factor(target) 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
6601 6602 |
# File 'docs/5_Battle_10_Move.rb', line 6601 def move_usable_by_user(user, targets) end |