Fixed an issue where the combat time was always 1 second for some users
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user