Class: Battle::Move::CounterBase

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

Overview

Base class for counter moves, deals damage equal to 1.5/2x opponent's move.

Direct Known Subclasses

Counter, MetalBurst, MirrorCoat

Instance Method Summary collapse

Methods included from Mechanics::Counter

#damages, #move_usable_by_user

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#counter_fails_common?(attacker, user) ⇒ Boolean

Test if the attack fails based on common conditions

Parameters:

Returns:

  • (Boolean) —

    does the attack fails ?



2526
2527
# File 'docs/5_Battle_10_Move.rb', line 2526

def counter_fails_common?(attacker, user)
end