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
-
#dead? ⇒ Boolean
(also: #wmt_dead?)
Tell if the effect is dead.
-
#initialize_with_marked_targets(user, targets, &block)
Initialize the mechanic.
-
#launcher ⇒ PFM::PokemonBattler?
The launcher of this effect.
Methods included from WithTargets
#initialize_with_targets, #targetted?
Instance Method Details
#dead? ⇒ Boolean Also known as: wmt_dead?
Tell if the effect is dead
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
227 228 |
# File 'docs/5_Battle_06_Effects_01_Mechanics.rb', line 227 def initialize_with_marked_targets(user, targets, &block) end |
#launcher ⇒ PFM::PokemonBattler?
The launcher of this effect
231 232 |
# File 'docs/5_Battle_06_Effects_01_Mechanics.rb', line 231 def launcher end |