contrebasse@44
|
1 local AddonName, T = ...
|
contrebasse@44
|
2
|
contrebasse@44
|
3 local GetNumCompanions, GetCompanionInfo = GetNumCompanions, GetCompanionInfo
|
contrebasse@44
|
4
|
contrebasse@44
|
5 -- Tables containing all the exceptions
|
contrebasse@44
|
6 T.SpellWhiteList = { -- Spells that do steath weapons (works with events1player)
|
contrebasse@44
|
7 -- True recipes are treated separately
|
contrebasse@44
|
8 [8690] = true, -- Heartstone
|
contrebasse@44
|
9 [818] = true, -- Basic Campfire
|
contrebasse@44
|
10 [13262] = true, -- Disenchant
|
contrebasse@44
|
11 [51005] = true, -- Milling
|
contrebasse@44
|
12
|
contrebasse@45
|
13 -- Critters (exceptions), the others don't draw weapons
|
contrebasse@44
|
14 [55068] = 1.3, -- Mr Chilly
|
contrebasse@44
|
15
|
contrebasse@45
|
16 -- Mounts (exceptions), the others don't draw weapons
|
contrebasse@44
|
17 [48778] = true, -- Acherus Deathcharger
|
contrebasse@44
|
18
|
contrebasse@44
|
19 }
|
contrebasse@44
|
20
|
contrebasse@45
|
21 -- Not used any more, but I keep it just in case...
|
contrebasse@44
|
22 T.SpellBlackList = { -- spells that don't stealth weapons (works with events1player)
|
contrebasse@44
|
23 -- All vanity pets and mount are added at PLAYER_LOGIN
|
contrebasse@44
|
24
|
contrebasse@45
|
25 -- Stealths
|
contrebasse@44
|
26 [1784] = true, -- Stealth (Rogue)
|
contrebasse@44
|
27 [58984] = true, -- Shadowmeld (Nightelf stealth)
|
contrebasse@44
|
28
|
contrebasse@44
|
29 -- DK presences
|
contrebasse@44
|
30 [48263] = true, -- Blood
|
contrebasse@44
|
31 [48266] = true, -- Frost
|
contrebasse@44
|
32 [48265] = true, -- Unholy
|
contrebasse@44
|
33
|
contrebasse@44
|
34 [3714] = true, -- Path of Frost
|
contrebasse@44
|
35
|
contrebasse@44
|
36
|
contrebasse@44
|
37 -- Tradeskill spells
|
contrebasse@44
|
38 [2259] = true, -- Alchemy
|
contrebasse@44
|
39 [45357] = true, -- Inscription
|
contrebasse@44
|
40 [3908] = true, -- Tailoring
|
contrebasse@44
|
41 [7411] = true, -- Enchanting
|
contrebasse@44
|
42 [2018] = true, -- Blacksmithing
|
contrebasse@44
|
43 [4036] = true, -- Engineering
|
contrebasse@44
|
44 [25229] = true, -- Jewelcrafting
|
contrebasse@44
|
45 [2656] = true, -- Smelting
|
contrebasse@44
|
46 [2108] = true, -- Leatherworking
|
contrebasse@44
|
47 [2550] = true, -- Cooking
|
contrebasse@44
|
48 [3273] = true, -- First Aid
|
contrebasse@44
|
49 [53428] = true -- Runeforge
|
contrebasse@44
|
50 -- Archaeology ?
|
contrebasse@44
|
51 }
|
contrebasse@44
|
52
|
contrebasse@44
|
53
|
contrebasse@44
|
54 T.DoBlackListCrittersAndMount = function() -- add some spell to the blacklist
|
contrebasse@44
|
55 for i=1,GetNumCompanions("CRITTER") do
|
contrebasse@44
|
56 -- creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("CRITTER", i)
|
contrebasse@44
|
57 local _, _, creatureSpellID = GetCompanionInfo("CRITTER", i)
|
contrebasse@44
|
58 if creatureSpellID ~= 55068 then -- Mr Chilly stealth weapons...
|
contrebasse@44
|
59 T.SpellBlackList[creatureSpellID] = true
|
contrebasse@44
|
60 end
|
contrebasse@44
|
61 end
|
contrebasse@44
|
62
|
contrebasse@44
|
63 -- mount is important only if the invocation is cancelled
|
contrebasse@44
|
64 for i=1,GetNumCompanions("MOUNT") do
|
contrebasse@44
|
65 -- creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("MOUNT", i)
|
contrebasse@44
|
66 local _, _, creatureSpellID = GetCompanionInfo("MOUNT", i)
|
contrebasse@44
|
67 if creatureSpellID ~= 48778 then -- Acherus Deathcharger stealth weapons...
|
contrebasse@44
|
68 T.SpellBlackList[creatureSpellID] = true
|
contrebasse@44
|
69 end
|
contrebasse@44
|
70 end
|
contrebasse@44
|
71 end
|