from retail

This commit is contained in:
NoM0Re
2025-01-08 00:24:04 +01:00
parent 2f96cddc7d
commit 988145737d
8 changed files with 132 additions and 49 deletions
+2 -7
View File
@@ -97,11 +97,6 @@ function WeakAuras.SpellSchool(school)
return Private.combatlog_spell_school_types[school] or ""
end
function WeakAuras.TestSchool(spellSchool, test)
print(spellSchool, test, type(spellSchool), type(test))
return spellSchool == test
end
function WeakAuras.RaidFlagToIndex(flag)
return Private.combatlog_raidFlags[flag] or 0
end
@@ -6256,8 +6251,8 @@ Private.event_prototypes = {
{
name = L["Latency"],
func = function(trigger, state)
if not state.expirationTime or not state.duration then return 0, 0 end
return 0, (state.expirationTime - state.duration) - (Private.LAST_CURRENT_SPELL_CAST_CHANGED or 0)
if not Private.LAST_CURRENT_SPELL_CAST_START or not Private.LAST_CURRENT_SPELL_CAST_CHANGED then return 0, 0 end
return 0, Private.LAST_CURRENT_SPELL_CAST_START - Private.LAST_CURRENT_SPELL_CAST_CHANGED
end,
enable = function(trigger)
return trigger.use_showLatency and trigger.unit == "player"