Module: Battle::Effects::Mechanics::Mark

Included in:
HelpingHand::Mark, LeechSeed::Mark
Defined in:
scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb

Overview

Effect linked to another, if the other die, this one dies too.

*Requirement*

  • Call initialize_mark

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mark_originEffectBase (readonly)

Get the origin mark

Returns:



11
12
13
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb', line 11

def mark_origin
  @mark_origin
end

Instance Method Details

#dead?Boolean Also known as: mark_dead?

Tell if the effect is dead

Returns:

  • (Boolean)


21
22
23
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb', line 21

def dead?
  super || @mark_origin.dead?
end

#initialize_mark(origin)

Initialize the mechanic

Parameters:



15
16
17
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb', line 15

def initialize_mark(origin)
  @mark_origin = origin
end