Class: Battle::Move::BeatUp

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

Overview

Class that manage the move Beat Up Beat Up inflicts damage on the target from the user, and each conscious Pokémon in the user's party that does not have a non-volatile status.

Instance Method Summary collapse

Instance Method Details

#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



1958
1959
# File 'docs/5_Battle_10_Move.rb', line 1958

def move_usable_by_user(user, targets)
end

#real_base_power(user, target) ⇒ Integer

Get the real base power of the move (taking in account all parameter)

Parameters:

Returns:

  • (Integer)


1964
1965
# File 'docs/5_Battle_10_Move.rb', line 1964

def real_base_power(user, target)
end