Class: Battle::Move::MindBlown

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

Overview

Class describing the Mind Blown move

Instance Method Summary collapse

Methods inherited from BasicWithSuccessfulEffect

#effect_working?

Methods inherited from Basic

#effect_working?

Instance Method Details

#deal_damage(user, actual_targets)

Function that deals the damage to the pokemon

Parameters:



4688
4689
# File 'docs/5_Battle_10_Move.rb', line 4688

def deal_damage(user, actual_targets)
end

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



4693
4694
# File 'docs/5_Battle_10_Move.rb', line 4693

def deal_effect(user, actual_targets)
end

#disable_reason(user) ⇒ #call

Get the reason why the move is disabled

Parameters:

Returns:

  • (#call) —

    Block that should be called when the move is disabled



4670
4671
# File 'docs/5_Battle_10_Move.rb', line 4670

def disable_reason(user)
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



4677
4678
# File 'docs/5_Battle_10_Move.rb', line 4677

def move_usable_by_user(user, targets)
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



4683
4684
# File 'docs/5_Battle_10_Move.rb', line 4683

def on_move_failure(user, targets, reason)
end