DB/Spell/TargetCreatureType

From wowdev
Revision as of 05:55, 31 October 2021 by Crow (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

TYPE_NONE = 0, TYPE_BEAST = 1, TYPE_DRAGONKIN = 2, TYPE_DEMON = 4, TYPE_ELEMENTAL = 8, TYPE_GIANT = 16, TYPE_UNDEAD = 32, TYPE_HUMANOID = 64, TYPE_CRITTER = 128, TYPE_MECHANICAL = 256, TYPE_NOTSPECIFIED = 512 TYPE_TOTEM = 1024, TYPE_NONCOMBATPET = 2048, TYPE_GASCLOUD = 4096, TYPE_WILDPET = 8192, TYPE_ABBERATION = 16384