Class: Battle::Move::ShedTail

Inherits:
Substitute show all
Defined in:
docs/5_Battle_10_Move.rb

Overview

Move that put the mon into a substitute and switches it out, giving its sub to the incoming Pokémon

Instance Method Summary collapse

Methods inherited from Substitute

#play_animation

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



6802
6803
# File 'docs/5_Battle_10_Move.rb', line 6802

def deal_effect(user, actual_targets)
end

#factor ⇒ Integer

The divisor used to calculate the HP cost for creating a substitute (1/4 of max HP)

Returns:

  • (Integer)


6806
6807
# File 'docs/5_Battle_10_Move.rb', line 6806

def factor
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



6797
6798
# File 'docs/5_Battle_10_Move.rb', line 6797

def move_usable_by_user(user, targets)
end

#self_user_switch? ⇒ Boolean

Tell if the move is a move that switch the user if that hit

Returns:

  • (Boolean)


6790
6791
# File 'docs/5_Battle_10_Move.rb', line 6790

def self_user_switch?
end