DB/Spell/TargetCreatureType

From wowdev
Jump to navigation Jump to search

It seems to be decimal versions of hex codes? They're clearly hex masks but by default the code is all decimal numbers. By putting or adding these numbers together, the spell can and will only target creatures of the given type, these correspond with their type in the database. Crow 30th October 2021

  • "by default" depends on your editor/source code. Just because someone writes something as decimal doesn't mean they are meant as non-hex-masks. Edited to use hex values for clarity. --Schlumpf (talk) 10:28, 1 November 2021 (CET)
  • As an added note, such a circumstance is effectmiscvalue for auras that are considered 'versus', such as spell aura 168 SPELL_AURA_MOD_DAMAGE_DONE_VERSUS, is another example of these values being used. In Mydbceditor, its a decimal value by default i.e. undead is 32, in which the hex value is 0x20. Crow 4th November 2021
TYPE_NONE          = 0x0000,
TYPE_BEAST         = 0x0001,
TYPE_DRAGONKIN     = 0x0002,
TYPE_DEMON         = 0x0004,
TYPE_ELEMENTAL     = 0x0008,
TYPE_GIANT         = 0x0010,
TYPE_UNDEAD        = 0x0020,
TYPE_HUMANOID      = 0x0040,
TYPE_CRITTER       = 0x0080,
TYPE_MECHANICAL    = 0x0100,
TYPE_NOTSPECIFIED  = 0x0200,
TYPE_TOTEM         = 0x0400,
TYPE_NONCOMBATPET  = 0x0800,
TYPE_GASCLOUD      = 0x1000,
TYPE_WILDPET       = 0x2000,
TYPE_ABBERATION    = 0x4000,