From ba7d2c2c2dd052ee69ca718812428dac4bae058c Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 12 Nov 2023 13:23:32 -0300 Subject: [PATCH] Fixed an issue where the combat time was always 1 second for some users --- boot.lua | 4 ++-- core/parser.lua | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/boot.lua b/boot.lua index 0b894d89..cb2684e9 100644 --- a/boot.lua +++ b/boot.lua @@ -13,8 +13,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - Details.build_counter = 12033 - Details.alpha_build_counter = 12033 --if this is higher than the regular counter, use it instead + Details.build_counter = 12034 + Details.alpha_build_counter = 12034 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter diff --git a/core/parser.lua b/core/parser.lua index 5e077f65..03b4ec5e 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -889,14 +889,13 @@ if (not _in_combat) then --~startcombat ~combatstart if ( token ~= "SPELL_PERIODIC_DAMAGE" and ( - (sourceFlags and bitBand(sourceFlags, AFFILIATION_GROUP) ~= 0 and UnitAffectingCombat(sourceName)) + (sourceFlags and bitBand(sourceFlags, AFFILIATION_GROUP) ~= 0 and UnitAffectingCombat(Details:Ambiguate(sourceName))) --error here, need to remove the realm from sourceName or - (targetFlags and bitBand(targetFlags, AFFILIATION_GROUP) ~= 0 and UnitAffectingCombat(targetName)) + (targetFlags and bitBand(targetFlags, AFFILIATION_GROUP) ~= 0 and UnitAffectingCombat(Details:Ambiguate(targetName))) or (not Details.in_group and sourceFlags and bitBand(sourceFlags, AFFILIATION_GROUP) ~= 0) ) ) then - if (spells_cant_start_combat[spellId] and sourceName == Details.playername) then return end