Class: Battle::Move::Rest

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

Overview

Class managing Rest

Instance Method Summary collapse

Instance Method Details

#deal_status(user, actual_targets)

Function that deals the status condition to the pokemon

Parameters:



5760
5761
# File 'docs/5_Battle_10_Move.rb', line 5760

def deal_status(user, actual_targets)
end

#move_blocked_by_target?(user, target) ⇒ Boolean

Note:

Thing that prevents the move from being used should be defined by :move_prevention_target Hook.

Function that tests if the targets blocks the move

Parameters:

Returns:

  • (Boolean) —

    if the target evade the move (and is not selected)



5751
5752
# File 'docs/5_Battle_10_Move.rb', line 5751

def move_blocked_by_target?(user, 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



5744
5745
# File 'docs/5_Battle_10_Move.rb', line 5744

def move_usable_by_user(user, targets)
end

#uproar? ⇒ Boolean

If a pokemon is using Uproar

Returns:

  • (Boolean)


5755
5756
# File 'docs/5_Battle_10_Move.rb', line 5755

def uproar?
end