Mercurial > wow > degaine
view 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 |
line wrap: on
line source
local AddonName, T = ... local GetNumCompanions, GetCompanionInfo = GetNumCompanions, GetCompanionInfo -- Tables containing all the exceptions T.SpellWhiteList = { -- Spells that do steath weapons (works with events1player) -- True recipes are treated separately [8690] = true, -- Heartstone [818] = true, -- Basic Campfire [13262] = true, -- Disenchant [51005] = true, -- Milling -- Critters (exceptions), the others don't draw weapons [55068] = 1.3, -- Mr Chilly -- Mounts (exceptions), the others don't draw weapons [48778] = true, -- Acherus Deathcharger -- Shaman's spells [2645] = true, -- Ghost wolf } T.LoseAura = { -- set these to false and not true !!! (use nil to remove them) [2645] = false,-- Shaman's Ghost wolf } --T.GainAura = { -- set these to false and not true !!! (use nil to remove them) --} -- Not used any more, but I keep it just in case... T.SpellBlackList = { -- spells that don't stealth weapons (works with events1player) -- All vanity pets and mount are added at PLAYER_LOGIN -- Stealths [1784] = true, -- Stealth (Rogue) [58984] = true, -- Shadowmeld (Nightelf stealth) -- DK presences [48263] = true, -- Blood [48266] = true, -- Frost [48265] = true, -- Unholy [3714] = true, -- Path of Frost -- Tradeskill spells [2259] = true, -- Alchemy [45357] = true, -- Inscription [3908] = true, -- Tailoring [7411] = true, -- Enchanting [2018] = true, -- Blacksmithing [4036] = true, -- Engineering [25229] = true, -- Jewelcrafting [2656] = true, -- Smelting [2108] = true, -- Leatherworking [2550] = true, -- Cooking [3273] = true, -- First Aid [53428] = true -- Runeforge -- Archaeology ? } T.DoBlackListCrittersAndMount = function() -- add some spell to the blacklist for i=1,GetNumCompanions("CRITTER") do -- creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("CRITTER", i) local _, _, creatureSpellID = GetCompanionInfo("CRITTER", i) if creatureSpellID ~= 55068 then -- Mr Chilly stealth weapons... T.SpellBlackList[creatureSpellID] = true end end -- mount is important only if the invocation is cancelled for i=1,GetNumCompanions("MOUNT") do -- creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("MOUNT", i) local _, _, creatureSpellID = GetCompanionInfo("MOUNT", i) if creatureSpellID ~= 48778 then -- Acherus Deathcharger stealth weapons... T.SpellBlackList[creatureSpellID] = true end end end