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