core: global environment cleanup

This commit is contained in:
Road-block
2019-03-31 14:59:21 +02:00
committed by shagu
parent 9ecafee7d5
commit e50fabfff9
15 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ libcast:SetScript("OnEvent", function()
end
-- Fill database with environmental casts
elseif arg1 then
local mob, spell
local mob, spell, _
-- (.+) begins to cast (.+).
mob, spell = cmatch(arg1, SPELLCASTOTHERSTART)
+1 -1
View File
@@ -44,7 +44,7 @@ local extra_methods = {
local getFontString = function(obj)
local name = obj:GetName()
local r, g, b, color
local r, g, b, color, a
local text, segment
for i=1, obj:NumLines() do
+5 -5
View File
@@ -84,7 +84,7 @@ libunitscan:SetScript("OnEvent", function()
end
elseif event == "GUILD_ROSTER_UPDATE" then
local name, class, level
local name, class, level, _
for i = 1, GetNumGuildMembers() do
name, _, _, level, class = GetGuildRosterInfo(i)
class = L["class"][class] or nil
@@ -92,7 +92,7 @@ libunitscan:SetScript("OnEvent", function()
end
elseif event == "RAID_ROSTER_UPDATE" then
local name, class, SubGroup, level
local name, class, SubGroup, level, _
for i = 1, GetNumRaidMembers() do
name, _, SubGroup, level, class = GetRaidRosterInfo(i)
class = L["class"][class] or nil
@@ -100,7 +100,7 @@ libunitscan:SetScript("OnEvent", function()
end
elseif event == "PARTY_MEMBERS_CHANGED" then
local name, class, level, unit
local name, class, level, unit, _
for i = 1, GetNumPartyMembers() do
unit = "party" .. i
_, class = UnitClass(unit)
@@ -110,7 +110,7 @@ libunitscan:SetScript("OnEvent", function()
end
elseif event == "WHO_LIST_UPDATE" or event == "CHAT_MSG_SYSTEM" then
local name, class, level
local name, class, level, _
for i = 1, GetNumWhoResults() do
name, _, level, _, class, _ = GetWhoInfo(i)
class = L["class"][class] or nil
@@ -119,7 +119,7 @@ libunitscan:SetScript("OnEvent", function()
elseif event == "UPDATE_MOUSEOVER_UNIT" or event == "PLAYER_TARGET_CHANGED" then
local scan = event == "PLAYER_TARGET_CHANGED" and "target" or "mouseover"
local name, class, level
local name, class, level, elite, _
if UnitIsPlayer(scan) then
_, class = UnitClass(scan)
level = UnitLevel(scan)