Class: Battle::Move::Telekinesis

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

Overview

Class managing Telekinesis move

Constant Summary collapse

POKEMON_UNAFFECTED =

Name of the pokemon that are unaffected by the move

Returns:

  • (Array<Symbol>)
%i[diglett dugtrio sandygast palossand]
EFFECTS_TO_CHECK =

Effects that prevent the target from being lifted

Returns:

  • (Array<Symbol>)
%i[telekinesis ingrain smack_down]

Instance Method Summary collapse

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



7056
7057
# File 'docs/5_Battle_10_Move.rb', line 7056

def deal_effect(user, actual_targets)
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



7045
7046
# File 'docs/5_Battle_10_Move.rb', line 7045

def move_usable_by_user(user, targets)
end

#target_immune?(user, target) ⇒ Boolean

Test if the target is immune

Parameters:

Returns:

  • (Boolean)


7051
7052
# File 'docs/5_Battle_10_Move.rb', line 7051

def target_immune?(user, target)
end