Module: Battle::Effects::Mechanics::WithMarkedTargets

Includes:
WithTargets
Included in:
HelpingHand, LeechSeed
Defined in:
docs/5_Battle_06_Effects_01_Mechanics.rb

Overview

Store targets informations

Requirement

  • Call initialize_with_marked_targets

**Initialization exemple** “‘ruby # Inside EffectBase child class initialize_with_marked_targets(targets) { |target| YourMarkEffect.new(logic, self, user, target) } “`

Instance Method Summary collapse

Methods included from WithTargets

#initialize_with_targets, #targetted?

Instance Method Details

#dead?Boolean Also known as: wmt_dead?

Tell if the effect is dead

Returns:

  • (Boolean)


235
236
# File 'docs/5_Battle_06_Effects_01_Mechanics.rb', line 235

def dead?
end

#initialize_with_marked_targets(user, targets, &block)

Initialize the mechanic

Parameters:



227
228
# File 'docs/5_Battle_06_Effects_01_Mechanics.rb', line 227

def initialize_with_marked_targets(user, targets, &block)
end

#launcherPFM::PokemonBattler?

The launcher of this effect

Returns:



231
232
# File 'docs/5_Battle_06_Effects_01_Mechanics.rb', line 231

def launcher
end