Class: Battle::Move::MirrorMove

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

Overview

Move that mimics the last move of the chosen target

Constant Summary collapse

COPY_CAT_MOVE_EXCLUDED =

Moves that cannot be copied by Mirror Move or Copy Cat

Returns:

  • (Array<Symbol>)
%i[baneful_bunker beak_blast behemoth_blade bestow celebrate chatter circle_throw copycat counter covet destiny_bond detect dragon_tail endure feint focus_punch follow_me helping_hand hold_hands king_s_shield mat_block assist me_first metronome mimic mirror_coat mirror_move protect rage_powder roar shell_trap sketch sleep_talk snatch struggle spiky_shield spotlight switcheroo thief transform trick whirlwind]

Instance Method Summary collapse

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



4748
4749
# File 'docs/5_Battle_10_Move.rb', line 4748

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



4743
4744
# File 'docs/5_Battle_10_Move.rb', line 4743

def move_usable_by_user(user, targets)
end