Class: Battle::Move::HighJumpKick

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

Overview

Move that has a big recoil when fails

Instance Method Summary collapse

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#crash_procedure(user)

Define the crash procedure when the move isn't able to connect to the target

Parameters:



4013
4014
# File 'docs/5_Battle_10_Move.rb', line 4013

def crash_procedure(user)
end

#on_move_failure(user, targets, reason)

Event called if the move failed

Parameters:

  • user (PFM::PokemonBattler) —

    user of the move

  • targets (Array<PFM::PokemonBattler>) —

    expected targets

  • reason (Symbol) —

    why the move failed: :usable_by_user, :accuracy, :immunity, :pp



4009
4010
# File 'docs/5_Battle_10_Move.rb', line 4009

def on_move_failure(user, targets, reason)
end