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

Includes:
WithTargets
Included in:
HelpingHand, LeechSeed
Defined in:
docs/01600_Alpha_25_Battle_Engine_04000_Effects_00001_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/01600_Alpha_25_Battle_Engine_04000_Effects_00001_Mechanics.rb', line 235

def dead?
end

#initialize_with_marked_targets(user, targets, &block)

Initialize the mechanic

Parameters:



227
228
# File 'docs/01600_Alpha_25_Battle_Engine_04000_Effects_00001_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/01600_Alpha_25_Battle_Engine_04000_Effects_00001_Mechanics.rb', line 231

def launcher
end