diff --git a/BigBrother/BigBrother.lua b/BigBrother/BigBrother.lua index e55f089..a5e0836 100644 --- a/BigBrother/BigBrother.lua +++ b/BigBrother/BigBrother.lua @@ -64,13 +64,13 @@ function events:ENCOUNTER_START(encounterID, encounterName, difficultyID, groupS end function events:COMBAT_LOG_EVENT_UNFILTERED(self, ...) - local timestamp, event, _, _, name, _, _, _, _, _, _, _, spellName = CombatLogGetCurrentEventInfo() + local _, event, _, _, name, _, _, _, _, _, _, _, spellName = CombatLogGetCurrentEventInfo() if event ~= "SPELL_CAST_SUCCESS" then return end if weaponEnchantments[spellName] ~= nil then local weaponEnchantmentSpellId, weaponEnchantmentDuration = unpack(weaponEnchantments[spellName]) - unitWeaponBuffs[name] = {weaponEnchantmentSpellId, timestamp + weaponEnchantmentDuration} + unitWeaponBuffs[name] = {weaponEnchantmentSpellId, GetTime() + weaponEnchantmentDuration} end end