mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup
This commit is contained in:
@@ -233,11 +233,7 @@ function GetCurrentMapAreaID()
|
||||
if not IsInInstance() then return end
|
||||
local zoneName = GetRealZoneText()
|
||||
|
||||
if zoneName ~= "" and zoneInfo[zoneName] then
|
||||
return zoneInfo[zoneName].mapID
|
||||
else
|
||||
return 0
|
||||
end
|
||||
return zoneInfo[zoneName] and zoneInfo[zoneName].mapID or 0
|
||||
end
|
||||
|
||||
function GetMapNameByID(id)
|
||||
@@ -345,7 +341,6 @@ function GetThreatStatus(currentThreat, maxThreat)
|
||||
assert(type(currentThreat) == "number" and type(maxThreat) == "number", "Usage: GetThreatStatus(currentThreat, maxThreat)")
|
||||
|
||||
if not maxThreat or maxThreat == 0 then
|
||||
maxThreat = 0
|
||||
maxThreat = 1
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user