Fixed an issue where the combat time was always 1 second for some users

This commit is contained in:
Tercio Jose
2023-11-12 13:23:32 -03:00
parent 4bc79da714
commit ba7d2c2c2d
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -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