-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbdk_display.lua
32 lines (29 loc) · 1.47 KB
/
bdk_display.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function()
if UnitAffectingCombat("player") and aura_env.recommended then
local default = aura_env.targetCount > 1 and aura_env.targetCount or nil
local bone_shield_stacks = aura_env.get_unit_aura_value(195181, 'count') or 0
local bbcharges = GetSpellCharges(50842)
local runic_power = UnitPower("player")
local health_percentage = math.ceil( (UnitHealth("player") / UnitHealthMax("player") * 100) )
local runes_available = aura_env.runes_available()
if type(aura_env.bone_shield_danger) == 'number' then
if aura_env.bone_shield_danger > 0 and aura_env.bone_shield_danger < 6 then
return string.format("%.1f", aura_env.bone_shield_danger) .. "s\n" .. bone_shield_stacks .. "/10"
end
end
if aura_env.recommended == 195182 then return bone_shield_stacks .. "/10" end
if aura_env.recommended == 55233 then return health_percentage .. "%%" end
if aura_env.recommended == 194844 then return runic_power .. "RP" end
if aura_env.recommended == 49998 then
if health_percentage < 95 then
return health_percentage .. "%%\n" .. runic_power .. "RP"
else
return runic_power .. "RP" end
end
if aura_env.recommended == 206930 then return runes_available .. "R" end
if aura_env.recommended == 50842 then return bbcharges .. "/2" end
return default
else
return "OOC"
end
end