Skip to content

spell_script_target Table

Defines script targets for spells - restricts spell to specific creatures or game objects.


Schema Summary

Field Type Key Null Default Extra
entry smallint(5) unsigned PRI NO
type tinyint(3) unsigned PRI NO 0
targetEntry mediumint(8) unsigned PRI NO 0
conditionId mediumint(8) unsigned NO 0
inverseEffectMask mediumint(8) unsigned NO 0
build_min smallint(4) unsigned NO 0
build_max smallint(4) unsigned NO 5875

Field Breakdown

  • entry - Spell ID. (see spell_template.entry)
  • type - Target kind (enum SpellTargetType, SpellMgr.h):
Value Meaning targetEntry is
0 GAMEOBJECT gameobject template entry
1 CREATURE creature template entry
2 DEAD creature creature entry, must be dead
3 PLAYER - (targetEntry unused)
- targetEntry - Template entry of the required target (see table). (see creature_template.entry or gameobject_template.entry)
- conditionId - Condition. (see conditions.condition_entry)
- inverseEffectMask - Bitmask over effect indexes (1 = effect 1, 2 = effect 2,
4 = effect 3): effects with their bit set do not hit the scripted target defined here.
- build_min / build_max - Client build range.