comparison Exceptions.lua @ 63:3daeb57da1a9 tip

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