Spell script target

From OregonCore Wiki
Jump to: navigation, search

Back to world database list of tables.

The `spell_script_target` table

Used to control SpellEffect with ImpliciteTargetA-B == 7, 8, 38, 46, 60.

These spell effects require a specific target in either alive or dead state (for creatures).

Schema Last Modified: TC1-1828 - Schema Verified: Rev 665


Field Type Attributes Key Null Default Extra Comment
entry mediumint(8) unsigned NO NULL
type tinyint(3) unsigned NO 0
targetEntry mediumint(8) unsigned NO 0

Description of the fields


The spell ID. See Spell.dbc

When adding a new entry, be sure to check to see if the spell triggers another spell. If it does, don't forget to check that spell as well to see if it has ImplictTargetA-B = 38 and if it does, add an entry in this table for it as well.


One of these type are available

  • 0 = Gameobject
  • 1 = Creature
  • 2 = Creature who must be dead (killed by Player or Npc)

NOTE: A creature corpse and a creature that looks dead are two different things. One is actually dead and the other is just using an emote to appear dead.


Can be: creature_template.entry or gameobject_template.entry depending on the choosen type.

This specified entry will be automatically targeted if it is near the player casting the spell.