Skip to content

Commit 6376b03

Browse files
fix: bug in npc-flags, dynamic-flags, mechanic-immune-mask (#28)
- Closes #27
1 parent 591b1b6 commit 6376b03

File tree

3 files changed

+66
-69
lines changed

3 files changed

+66
-69
lines changed
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Flag } from '../../types/general';
22

33
export const DYNAMIC_FLAGS: Flag[] = [
4-
{ bit: 0, name: 'NONE'},
5-
{ bit: 1, name: 'LOOTABLE'},
6-
{ bit: 2, name: 'TRACK_UNIT - Creature’s location will be seen as a small dot in the minimap'},
7-
{ bit: 3, name: 'TAPPED - Makes creatures name appear grey (Lua_UnitIsTapped)'},
8-
{ bit: 4, name: 'TAPPED_BY_PLAYER - Lua_UnitIsTappedByPlayer usually used by PCVs (Player Controlled Vehicles'},
9-
{ bit: 5, name: 'SPECIALINFO'},
10-
{ bit: 6, name: 'DEAD - Makes the creature appear dead (this DOES NOT make the creature’s name grey or not attack players).'},
11-
{ bit: 7, name: 'REFER_A_FRIEND'},
12-
{ bit: 8, name: 'TAPPED_BY_ALL_THREAT_LIST - Lua_UnitIsTappedByAllThreatList'},
4+
{ bit: 0, name: 'LOOTABLE'},
5+
{ bit: 1, name: 'TRACK_UNIT - Creature’s location will be seen as a small dot in the minimap'},
6+
{ bit: 2, name: 'TAPPED - Makes creatures name appear grey (Lua_UnitIsTapped)'},
7+
{ bit: 3, name: 'TAPPED_BY_PLAYER - Lua_UnitIsTappedByPlayer usually used by PCVs (Player Controlled Vehicles'},
8+
{ bit: 4, name: 'SPECIALINFO'},
9+
{ bit: 5, name: 'DEAD - Makes the creature appear dead (this DOES NOT make the creature’s name grey or not attack players).'},
10+
{ bit: 6, name: 'REFER_A_FRIEND'},
11+
{ bit: 7, name: 'TAPPED_BY_ALL_THREAT_LIST - Lua_UnitIsTappedByAllThreatList'},
1312
];
Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
import { Flag } from '../../types/general';
22

33
export const MECHANIC_IMMUNE_MASK: Flag[] = [
4-
{ bit: 0, name: 'NONE' },
5-
{ bit: 1, name: 'CHARM' },
6-
{ bit: 2, name: 'DISORIENTED' },
7-
{ bit: 3, name: 'DISARM' },
8-
{ bit: 4, name: 'DISTRACT' },
9-
{ bit: 5, name: 'FEAR' },
10-
{ bit: 6, name: 'GRIP - Death Grip and similar effects' },
11-
{ bit: 7, name: 'ROOT' },
12-
{ bit: 8, name: 'SLOW_ATTACK' },
13-
{ bit: 9, name: 'SILENCE' },
14-
{ bit: 10, name: 'SLEEP' },
15-
{ bit: 11, name: 'SNARE' },
16-
{ bit: 12, name: 'STUN' },
17-
{ bit: 13, name: 'FREEZE' },
18-
{ bit: 14, name: 'KNOCKOUT - Incapacitate effects such as Repentance (Paladin)' },
19-
{ bit: 15, name: 'BLEED' },
20-
{ bit: 16, name: 'BANDAGE - Healing' },
21-
{ bit: 17, name: 'POLYMORPH' },
22-
{ bit: 18, name: 'BANISH' },
23-
{ bit: 19, name: 'SHIELD' },
24-
{ bit: 20, name: 'SHACKLE - Shackle Undead only' },
25-
{ bit: 21, name: 'MOUNT - Any effect that summons a mount' },
26-
{ bit: 22, name: 'INFECTED - e.g. Frost Fever, Blood Plague etc..' },
27-
{ bit: 23, name: 'TURN - e.g. Turn Evil' },
28-
{ bit: 24, name: 'HORROR - e.g. Death Coil (Warlock)' },
29-
{ bit: 25, name: 'INVULNERABILITY - Forbearance, Nether Protection, Diplomatic Immunity only' },
30-
{ bit: 26, name: 'INTERRUPT' },
31-
{ bit: 27, name: 'DAZE' },
32-
{ bit: 28, name: 'DISCOVERY - Any Create Item effect' },
33-
{ bit: 29, name: 'IMMUNE_SHIELD - e.g. Divine Shield, Ice Block, Hand of Protection' },
34-
{ bit: 30, name: 'SAPPED' },
35-
{ bit: 31, name: 'ENRAGED' },
4+
{ bit: 0, name: 'CHARM' },
5+
{ bit: 1, name: 'DISORIENTED' },
6+
{ bit: 2, name: 'DISARM' },
7+
{ bit: 3, name: 'DISTRACT' },
8+
{ bit: 4, name: 'FEAR' },
9+
{ bit: 5, name: 'GRIP - Death Grip and similar effects' },
10+
{ bit: 6, name: 'ROOT' },
11+
{ bit: 7, name: 'SLOW_ATTACK' },
12+
{ bit: 8, name: 'SILENCE' },
13+
{ bit: 9, name: 'SLEEP' },
14+
{ bit: 10, name: 'SNARE' },
15+
{ bit: 11, name: 'STUN' },
16+
{ bit: 12, name: 'FREEZE' },
17+
{ bit: 13, name: 'KNOCKOUT - Incapacitate effects such as Repentance (Paladin)' },
18+
{ bit: 14, name: 'BLEED' },
19+
{ bit: 15, name: 'BANDAGE - Healing' },
20+
{ bit: 16, name: 'POLYMORPH' },
21+
{ bit: 17, name: 'BANISH' },
22+
{ bit: 18, name: 'SHIELD' },
23+
{ bit: 19, name: 'SHACKLE - Shackle Undead only' },
24+
{ bit: 20, name: 'MOUNT - Any effect that summons a mount' },
25+
{ bit: 21, name: 'INFECTED - e.g. Frost Fever, Blood Plague etc..' },
26+
{ bit: 22, name: 'TURN - e.g. Turn Evil' },
27+
{ bit: 23, name: 'HORROR - e.g. Death Coil (Warlock)' },
28+
{ bit: 24, name: 'INVULNERABILITY - Forbearance, Nether Protection, Diplomatic Immunity only' },
29+
{ bit: 25, name: 'INTERRUPT' },
30+
{ bit: 26, name: 'DAZE' },
31+
{ bit: 27, name: 'DISCOVERY - Any Create Item effect' },
32+
{ bit: 28, name: 'IMMUNE_SHIELD - e.g. Divine Shield, Ice Block, Hand of Protection' },
33+
{ bit: 29, name: 'SAPPED' },
34+
{ bit: 30, name: 'ENRAGED' },
3635
];
Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
import { Flag } from '../../types/general';
22

33
export const NPC_FLAGS: Flag[] = [
4-
{ bit: 0, name: 'NONE' },
5-
{ bit: 1, name: 'GOSSIP - If creature has more gossip options, add this flag to bring up a menu.' },
6-
{ bit: 2, name: 'QUESTGIVER - Any creature giving or taking quests needs to have this flag.' },
7-
{ bit: 3, name: 'UNK1' },
8-
{ bit: 4, name: 'UNK2' },
9-
{ bit: 5, name: 'TRAINER - Allows the creature to have a trainer list to teach spells' },
10-
{ bit: 6, name: 'TRAINER_CLASS' },
11-
{ bit: 7, name: 'TRAINER_PROFESSION' },
12-
{ bit: 8, name: 'VENDOR - Any creature selling items needs to have this flag.' },
13-
{ bit: 9, name: 'VENDOR_AMMO' },
14-
{ bit: 10, name: 'VENDOR_FOOD' },
15-
{ bit: 11, name: 'VENDOR_POISON' },
16-
{ bit: 12, name: 'VENDOR_REAGENT' },
17-
{ bit: 13, name: 'REPAIR - Creatures with this flag can repair items.' },
18-
{ bit: 14, name: 'FLIGHTMASTER - Any creature serving as flight master has this.' },
19-
{ bit: 15, name: 'SPIRITHEALER - Makes the creature invisible to alive characters and has the resurrect function.' },
20-
{ bit: 16, name: 'SPIRITGUIDE' },
21-
{ bit: 17, name: 'INNKEEPER - Creatures with this flag can set hearthstone locations.' },
22-
{ bit: 18, name: 'BANKER - Creatures with this flag can show the bank\n' },
23-
{ bit: 19, name: 'PETITIONER' },
24-
{ bit: 20, name: 'TABARDDESIGNER - Allows the designing of guild tabards.' },
25-
{ bit: 21, name: 'BATTLEMASTER - Creatures with this flag port players to battlegrounds.' },
26-
{ bit: 22, name: 'AUCTIONEER - Allows creature to display auction list.' },
27-
{ bit: 23, name: 'STABLEMASTER - Has the option to stable pets for hunters.' },
28-
{ bit: 24, name: 'GUILD_BANKER' },
29-
{ bit: 25, name: 'SPELLCLICK - Needs data on npc_spellclick_spells table' },
30-
{ bit: 26, name: 'PLAYER_VEHICLE - players with mounts that have vehicle data should have it set' },
31-
{ bit: 27, name: 'MAILBOX - NPC will act like a mailbox (opens mailbox with right-click)' },
4+
{ bit: 0, name: 'GOSSIP - If creature has more gossip options, add this flag to bring up a menu.' },
5+
{ bit: 1, name: 'QUESTGIVER - Any creature giving or taking quests needs to have this flag.' },
6+
{ bit: 2, name: 'UNK1' },
7+
{ bit: 3, name: 'UNK2' },
8+
{ bit: 4, name: 'TRAINER - Allows the creature to have a trainer list to teach spells' },
9+
{ bit: 5, name: 'TRAINER_CLASS' },
10+
{ bit: 6, name: 'TRAINER_PROFESSION' },
11+
{ bit: 7, name: 'VENDOR - Any creature selling items needs to have this flag.' },
12+
{ bit: 8, name: 'VENDOR_AMMO' },
13+
{ bit: 9, name: 'VENDOR_FOOD' },
14+
{ bit: 10, name: 'VENDOR_POISON' },
15+
{ bit: 11, name: 'VENDOR_REAGENT' },
16+
{ bit: 12, name: 'REPAIR - Creatures with this flag can repair items.' },
17+
{ bit: 13, name: 'FLIGHTMASTER - Any creature serving as flight master has this.' },
18+
{ bit: 14, name: 'SPIRITHEALER - Makes the creature invisible to alive characters and has the resurrect function.' },
19+
{ bit: 15, name: 'SPIRITGUIDE' },
20+
{ bit: 16, name: 'INNKEEPER - Creatures with this flag can set hearthstone locations.' },
21+
{ bit: 17, name: 'BANKER - Creatures with this flag can show the bank\n' },
22+
{ bit: 18, name: 'PETITIONER' },
23+
{ bit: 19, name: 'TABARDDESIGNER - Allows the designing of guild tabards.' },
24+
{ bit: 20, name: 'BATTLEMASTER - Creatures with this flag port players to battlegrounds.' },
25+
{ bit: 21, name: 'AUCTIONEER - Allows creature to display auction list.' },
26+
{ bit: 22, name: 'STABLEMASTER - Has the option to stable pets for hunters.' },
27+
{ bit: 23, name: 'GUILD_BANKER' },
28+
{ bit: 24, name: 'SPELLCLICK - Needs data on npc_spellclick_spells table' },
29+
{ bit: 25, name: 'PLAYER_VEHICLE - players with mounts that have vehicle data should have it set' },
30+
{ bit: 26, name: 'MAILBOX - NPC will act like a mailbox (opens mailbox with right-click)' },
3231
];

0 commit comments

Comments
 (0)