Figured I would add a little to your thread.
Code:
local visible, texture, start, duration, enable, reversed = IconAuraID("HELPFUL|PLAYER", "player", 125195)
if duration and (start + duration - GetTime()) <= 60 then
return visible, texture, start, duration, enable, reversed
end
TeB less then 60 seconds remaining, This isn't as useful anymore since 5.2 broke stacking TeB early but I still like to know.
Code:
return IconAuraID("HELPFUL", "player", 116740, nil, false, true)
TeB buff when the buff is active.
Code:
affectingCombat = UnitAffectingCombat("player");
if affectingCombat then
local _, _, _, _, _, dur, exp = UnitBuff("player", "Tiger Power", nil, "PLAYER")
if exp then
if (exp - GetTime()) <= 10 then
return true, "Interface\\Icons\\ability_monk_tigerpalm", (exp - dur), dur, 1, nil, nil, 0.5
end
else
return true, "Interface\\Icons\\ability_monk_tigerpalm"
end
end
Tiger Power low time warning.
Code:
local c = UnitPower("player", SPELL_POWER_CHI)
for i = 1, c do AddMBar(nil, nil, nil, nil, nil, nil, true, nil, 0, 1, 1) end
for i = c + 1, 4 do AddMBar(nil, nil, nil, nil, nil, nil, true, nil, 0, 1, 0) end
Chi Bar
Code:
affectingCombat = UnitAffectingCombat("player");
if affectingCombat then
local cm = UnitPower("player")
return true, nil, 0, UnitPowerMax("player"), cm, nil, cm
end
Energy Bar