Class: Battle::Move::ShellTrap

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

Overview

Implement the Shell Trap 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

#move_usable?(user, target) ⇒ Boolean

Tell if the move is usable

Parameters:

Returns:

  • (Boolean)


5377
5378
# File 'docs/5_Battle_10_Move.rb', line 5377

def move_usable?(user, target)
end

#pre_attack_effect(user)

Class of the Effect given by this move

Parameters:



5367
5368
# File 'docs/5_Battle_10_Move.rb', line 5367

def pre_attack_effect(user)
end

#pre_attack_message(user)

Display the charging message

Parameters:



5371
5372
# File 'docs/5_Battle_10_Move.rb', line 5371

def pre_attack_message(user)
end

#show_usage_failure(user)

Show the usage failure when move is not usable by user

Parameters:



5381
5382
# File 'docs/5_Battle_10_Move.rb', line 5381

def show_usage_failure(user)
end