Just an update on the Spell Power display code (Updated for 3.0) Its not updating with buffs/trinkets/flasks etc.
Im not the best LUA coder around so i just read up and made some modifications to the code, allowing it to update
when ever things change to your Spell Power
local MAJOR_VERSION = "LibDogTag-3.0"
local MINOR_VERSION = 90000 + tonumber(("$Revision: 203 $"):match("%d+")) or 0
if MINOR_VERSION > _G.DogTag_MINOR_VERSION then
_G.DogTag_MINOR_VERSION = MINOR_VERSION
end
DogTag_funcs[#DogTag_funcs+1] = function(DogTag)
local L = DogTag.L
DogTag:AddTag("Unit", "SpellPower", {
code = function(school)
if (school < 0 or school > 7) then
return nil
elseif (school == 0) then
return GetSpellBonusHealing()
else
return GetSpellBonusDamage(school)
end
end,
arg = {
'school', 'number', '@req',
},
ret = "number;nil",
events = "UNIT_INVENTORY_CHANGED;UNITID;UNIT_STATS;UNIT_AURA;UNIT_SPELL_POWER",
doc = L["Returns the raw spell damage bonus of the player for a given spell tree."],
example = '[SpellPower(7)] => "2167"',
category = L["Miscellaneous"]
})
end