Module: Battle::Effects::Mechanics::WithTargets

Included in:
WithMarkedTargets, PreventTargetsMove
Defined in:
docs/01600_Alpha_25_Battle_Engine_04000_Effects_00001_Mechanics.rb

Overview

Store targets informations

Requirement

  • Call initialize_with_targets

Instance Method Summary collapse

Instance Method Details

#initialize_with_targets(targets)

Init the mechanic

Parameters:



202
203
# File 'docs/01600_Alpha_25_Battle_Engine_04000_Effects_00001_Mechanics.rb', line 202

def initialize_with_targets(targets)
end

#targetted?(battler) ⇒ Boolean Also known as: with_targets_targetted?

Tell if the given battler is targetted by the effect

Parameters:

Returns:

  • (Boolean)


207
208
# File 'docs/01600_Alpha_25_Battle_Engine_04000_Effects_00001_Mechanics.rb', line 207

def targetted?(battler)
end