Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- if not aura_env.soakers then
- return ""
- end
- local now = GetTime()
- local ret = string.format("Pylon: %s\n\n", aura_env.pylon / 2)
- local soakerNameInfo = function(soakerName)
- local info = aura_env.soakerInfo[soakerName]
- if UnitIsDeadOrGhost(soakerName) then
- return string.format("|c%s%s|r", "FF666666", soakerName)
- elseif info.active then
- return string.format("|c%s%s (%s)|r", "FF00FF00", soakerName, info.stacks)
- elseif (info.expirationTime or 0) > now then
- return string.format("|c%s%s (%s): %ds|r", "FFFF0000", soakerName, info.stacks, info.expirationTime - now)
- else
- return string.format("|c%s%s|r", "FFFFFFFF", soakerName)
- end
- end
- for i = 1, #aura_env.soakers , 1 do
- ret = string.format("%s%s\n", ret, soakerNameInfo(aura_env.soakers[i]))
- end
- local playerInfo = aura_env.soakerInfo[(UnitName("player"))]
- if playerInfo ~= nil then
- if playerInfo.active then
- ret = string.format("%s\n%s |c%s%s|r %s", ret, aura_env.alertTexture, "FFFF00FF", playerInfo.stacks, aura_env.alertTexture)
- elseif playerInfo.position == 1 then
- ret = string.format("%s\n%s |c%s%s|r %s", ret, aura_env.soakTexture, "FF00FFFF", "You are first!", aura_env.soakTexture)
- elseif playerInfo.position > 1 and playerInfo.position < #aura_env.soakers then
- local predecessorInfo = aura_env.soakerInfo[aura_env.soakers[playerInfo.position - 1]]
- if predecessorInfo.active then
- ret = string.format("%s\n%s |c%s%s (%s)|r %s", ret, aura_env.alertTexture, "FF00FFFF", "You are next!", predecessorInfo.stacks, aura_env.alertTexture)
- end
- end
- end
- return ret
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement