Fixing last commit stuff

This commit is contained in:
Tercio Jose
2024-08-17 13:10:06 -03:00
committed by andrew6180
parent 6456547ab1
commit ff80c8c9c6
2 changed files with 17 additions and 17 deletions
+5 -5
View File
@@ -788,6 +788,11 @@ Details222.Parser.EventFrame:RegisterEvent("PLAYER_REGEN_DISABLED")
Details222.Parser.EventFrame:SetScript("OnEvent", function(self, event, ...)
local instanceName, isntanceType = GetInstanceInfo()
if (isntanceType == "pvp" or isntanceType == "arena") then
Details222.parser_frame:SetScript("OnEvent", Details222.Parser.OnParserEventPVP)
return
end
if (isntanceType ~= "none") then
if (Details222.parser_frame:GetScript("OnEvent") ~= Details222.Parser.OnParserEvent) then
Details222.parser_frame:SetScript("OnEvent", Details222.Parser.OnParserEvent)
@@ -795,11 +800,6 @@ Details222.Parser.EventFrame:SetScript("OnEvent", function(self, event, ...)
return
end
if (isntanceType == "pvp" or isntanceType == "arena") then
Details222.parser_frame:SetScript("OnEvent", Details222.Parser.OnParserEventPVP)
return
end
if (event == "PLAYER_ENTERING_WORLD" or event == "ZONE_CHANGED_NEW_AREA") then
if (bConsiderGroupMembers) then
--check if any group member is in combat