spell_linked_spell

Back-to:World

The `spell_linked_spell` table

This table provides data for spell linking system, telling it which spells trigger what, and under which conditions.

Field

Type

Attributes

Key

Null

Default

Extra

Comment

spell_linked_spell#spell_trigger

mediumint(8)

signed


NO

NULL



spell_linked_spell#spell_effect

mediumint(8)

signed


NO

0



spell_linked_spell#type

smallint(3)

unsigned


NO

0



spell_linked_spell#comment

text

signed


NO

NULL



Description of the fields

spell_trigger

The spell, which when cast, will trigger the spell listed in spell_linked_spell#spell_effect

spell_ effect

The spell that you want to be triggered. How this spell acts is determined by the spell_linked_spell#type field.

type

Three values are possible (0,1,2). See below.

comment

Optional comment to explain the link.

Description of the linking effects

type 0 (CAST)

Trigger mode

Effect

type 1 (HIT)

Trigger mode

For this mode spell_trigger must be positive. Effect is executed when spell_trigger hits a target. I suppose that if the spell_trigger hits more than one target, the effect is executed for each target hit.

Effect

type == 2 (AURA)

Trigger mode

For this mode spell_trigger must be positive. Effect is executed when the aura spell_trigger is applied AND when it is removed from a target.

Effect

  • ON APPLY: Adds aura spell_effect on the same target.
  • ON REMOVE: Removes aura spell_effecton the same target.

  • ON APPLY: Makes the target immune to spell_effect.
  • ON REMOVE: Clears target immunity to spell_effect.