v2.0.15
-Shield absorb estimate is now part of the shield barrier bar.
When in combat the shield bar will appear. The left hand number is the current absorb amount remaining, the right hand number is the estimated absorb amount if you used shield barrier at that moment (0 when <20 rage).
When barrier is active the bar color reflects the duration. When the estimated absorb size is larger than the current absorb, the text is in green (or when no absorb is active).
http://farm9.staticflickr.com/8176/7...0e113a12_z.jpg
-When in Protection spec the rage bar will turn green at 60 rage.
-Added shield wall timer bars.
-Rage bar can now be disabled, and does not function when the addon is disabled (the permanent option was removed).
Barrier formula I ended up using:
function SlamAndAwe:EstimateShieldBarrier()
local curRage = UnitPower("player", "rage")
if curRage >= 20 then
local _, STR, _, _ = UnitStat("player", 1)
local _, STA, _, _ = UnitStat("player", 3)
local APbase, APposBuff, APnegBuff = UnitAttackPower("player")
local APfinal = APbase + APposBuff + APnegBuff
local sbMaxRage = 60
return floor(max((2*(APfinal - STR * 2)), ((2.5 * STA)*(min(curRage,60)/sbMaxRage))))
else
return 0
end
end
