이거 흑마 3특 다뜨던데 악흑 특성할때만 띄우게 하고 싶은데 어떤 문구를 바꿔야 될까요??
function(a, event, unit, ...)
if unit and unit ~= "player"
or event == "UNIT_POWER_UPDATE" and (...) ~= "SOUL_SHARDS"
then return true end
local e = aura_env
local math = math
if event == "PLAYER_SPECIALIZATION_CHANGED"
or event == "PLAYER_REGEN_DISABLED" then
e.AdjustToSpec(GetSpecialization())
end
if event == "UNIT_SPELLCAST_START" and unit == "player" then
local _, spellID = ...
local SpellCost = GetSpellPowerCost(spellID)[1]
if SpellCost and SpellCost.type == 7 then
e.cost = SpellCost.cost
e.consuming = e.cost
end
end
if event == "UNIT_SPELLCAST_STOP" and unit == "player" then
e.cost = 0
e.consuming = 0
end
local shards = UnitPower("player", 7, true)*0.1
if not IsSpellKnown(116858) then shards = math.floor(shards) end
local frags = shards - math.floor(shards)
e.consuming = shards >= e.cost and e.cost or shards
local remains = shards - e.cost
for i = 1, 5 do
--Casting prediction
local min, max = 0, 0
if e.cost > 0 and i > remains and i < math.min(shards - 0.01) + 1 then
if frags == 0 or shards - e.consuming > remains and e.consuming > 1 then
min, max = 0, 1
elseif shards - e.consuming == remains then
min, max = remains - math.floor(remains), 1
else
min, max = 0, e.consuming
end
e.consuming = e.consuming - (max - min)
end
a[i] = a[i] or {}
a[i].show = e.DisplayEmptyShards or i <= math.floor(shards - 0.01) + 1
a[i].changed = true
a[i].progressType = "static"
a[i].value = shards >= i and 1 or shards + 1 > i and frags or 0
a[i].total = 1
a[i].index = i
a[i].name = e.FormatCount(i, shards, e.cost)
a[i].additionalProgress = {
[1] = {min = min, max = max}
}
a[i].consuming = e.consuming > 0
a[i].full = shards == 5
end
if e.TrackDoom and IsPlayerSpell(265412) and shards < 5 then
local i = shards + 1
local now = GetTime()
for _, info in e.orderedDoom(e.Doom, e.nextDoom) do
if i <= 5 and info.dur > 0 and info.exp > now then
local doom = a[i]
i = i + 1
doom.show = true
doom.progressType = "timed"
doom.duration = info.dur
doom.expirationTime = info.exp
doom.nature = info.dur < 30 and "partial" or "full"
doom.changed = true
end
end
end
return true
end