Tuk/Elv UI's are always a good start.
- Clean
- Lightweight
- Have everything that most addons have but without the bloat.
I've never really had the hots for AffDots as TellMeWhen does the job for me just fine, tracking spell power included
File Name: spellpower.lua
Location: \Interface\AddOns\TellMeWhen\Lib\LibDogTag-3.0\Categories
Code:
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
Loading the module: \Interface\AddOns\TellMeWhen\Lib\LibDogTag-3.0\lib.xml
Code:
<Script file="Categories\spellpower.lua" />
Enable module in game: