Class: Battle::Move::SleepTalk

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

Overview

Class describing the Sleep Talk move

Constant Summary collapse

CANNOT_BE_SELECTED_MOVES =

List of moves that cannot be selected by Sleep Talk

Returns:

  • (Array<Symbol>)
%i[assist belch bide bounce copycat dig dive freeze_shock fly focus_punch geomancy ice_burn me_first metronome sleep_talk mirror_move mimic phantom_force razor_wind shadow_force sketch skull_bash sky_attack sky_drop solar_beam uproar electro_shot]

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



6229
6230
# File 'docs/5_Battle_10_Move.rb', line 6229

def move_usable_by_user(user, targets)
end