from retail

This commit is contained in:
Bunny67
2020-06-29 18:43:40 +03:00
parent 4d0cd34a33
commit ba951af876
12 changed files with 610 additions and 224 deletions
+4 -4
View File
@@ -938,7 +938,7 @@ end
local function MultiUnitLoop(Func, unit, ...)
unit = string.lower(unit)
if unit == "boss" or unit == "arena" then
for i = 1, 5 do
for i = 1, MAX_BOSS_FRAMES do
Func(unit..i, ...)
end
elseif unit == "group" then
@@ -2503,6 +2503,7 @@ function WeakAuras.WatchUnitChange(unit)
watchUnitChange:RegisterEvent("PLAYER_TARGET_CHANGED")
watchUnitChange:RegisterEvent("PLAYER_FOCUS_CHANGED");
watchUnitChange:RegisterEvent("UNIT_TARGET");
watchUnitChange:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT");
watchUnitChange:RegisterEvent("PARTY_MEMBERS_CHANGED");
watchUnitChange:RegisterEvent("RAID_ROSTER_UPDATE");
watchUnitChange:RegisterEvent("PLAYER_ENTERING_WORLD")
@@ -3036,10 +3037,9 @@ do
if(v:GetObjectType() == "FontString") then
local text = v:GetText();
if(text) then
local _, _, name = text:find("^(.+) %(%d+ [^%)]+%)$");
local _, _, name, shortenedName = text:find("^((.-) ?+?[VI%d]*) %(%d+ .+%)$");
if(name) then
local _, _, shortenedName = name:find("^(.+) [VI%d]+$")
return name, shortenedName or name;
return name, shortenedName;
end
end
end