Class: Battle::Move::Protect

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

Overview

Protect move and its variants

Constant Summary collapse

BYPASS_FAILURE_CHECK_MOVES =

Moves that bypass the failure check

Returns:

  • (Array<Symbol>)
%i[quick_guard wide_guard]

Instance Method Summary collapse

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



5429
5430
# File 'docs/5_Battle_10_Move.rb', line 5429

def deal_effect(user, actual_targets)
end

#deal_message(user) ⇒ String

Get the message displayed when the move is successfully used

Parameters:

Returns:



5434
5435
# File 'docs/5_Battle_10_Move.rb', line 5434

def deal_message(user)
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



5424
5425
# File 'docs/5_Battle_10_Move.rb', line 5424

def move_usable_by_user(user, targets)
end