Class: Battle::Move::FocusPunch

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

Overview

Implement the Focus Punch move

Instance Method Summary collapse

Methods inherited from PreAttackBase

#can_pre_use_move?, #move_blocked_by_target?, #move_usable_by_user, #pre_attack?, #pre_attack_animation, #proceed_pre_attack

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#disturbed?(user) ⇒ Boolean

Is the pokemon unable to proceed the attack ?

Parameters:

Returns:

  • (Boolean)


5349
5350
# File 'docs/5_Battle_10_Move.rb', line 5349

def disturbed?(user)
end

#move_usable?(user, target) ⇒ Boolean

Tell if the move is usable

Parameters:

Returns:

  • (Boolean)


5344
5345
# File 'docs/5_Battle_10_Move.rb', line 5344

def move_usable?(user, target)
end

#pre_attack_effect(user)

Class of the Effect given by this move

Parameters:



5334
5335
# File 'docs/5_Battle_10_Move.rb', line 5334

def pre_attack_effect(user)
end

#pre_attack_message(user)

Display the charging message

Parameters:



5338
5339
# File 'docs/5_Battle_10_Move.rb', line 5338

def pre_attack_message(user)
end