DB/Spell/TargetCreatureType: Difference between revisions

From wowdev
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 1: Line 1:
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. [[User:Crow|Crow]] 30th October 2021
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. [[User:Crow|Crow]] 30th October 2021


TYPE_NONE          = 0,
<nowiki>TYPE_NONE          = 0,
TYPE_BEAST        = 1,
TYPE_BEAST        = 1,
TYPE_DRAGONKIN    = 2,
TYPE_DRAGONKIN    = 2,
Line 16: Line 16:
TYPE_GASCLOUD    = 4096,
TYPE_GASCLOUD    = 4096,
TYPE_WILDPET      = 8192,
TYPE_WILDPET      = 8192,
TYPE_ABBERATION  = 16384
TYPE_ABBERATION  = 16384</nowiki>

Revision as of 05:55, 31 October 2021

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