Class: Battle::Move::Assist

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

Overview

Class describing the Assist move

Constant Summary collapse

CANNOT_BE_SELECTED_MOVES =

List of moves that cannot be selected by Assist

Returns:

  • (Array<Symbol>)
%i[assist baneful_bunker beak_blast belch bestow bounce celebrate chatter circle_throw copycat counter covet destiny_bound detect dig dive dragon_tail endure feint fly focus_punch follow_me helping_hand hold_hands king_s_shield mat_block me_first metronome mimic mirror_coat mirror_move nature_power phantom_force protect rage_powder roar shadow_force shell_trap sketch sky_drop sleep_talk snatch spiky_shield spotlight struggle switcheroo thief transform trick whirlwind]

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



1810
1811
# File 'docs/5_Battle_10_Move.rb', line 1810

def move_usable_by_user(user, targets)
end