Class: Battle::Move::StealthRock

Inherits:
Move
  • Object
show all
Defined in:
docs/5_Battle_10_Move.rb

Overview

Move that inflict Stealth Rock to the enemy bank

Instance Method Summary collapse

Instance Method Details

#calc_factor(target) ⇒ Integer, Float

Calculate the multiplier needed to get the damage factor of the Stealth Rock

Parameters:

Returns:

  • (Integer, Float)


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

Parameters:

Returns:

  • (Boolean) —

    if the procedure can continue



6601
6602
# File 'docs/5_Battle_10_Move.rb', line 6601

def move_usable_by_user(user, targets)
end