From b6de728d2ca840ef474905851538b3f8d2ceef49 Mon Sep 17 00:00:00 2001 From: Peter Eliasson Date: Tue, 20 Jan 2015 13:19:28 +0100 Subject: [PATCH] Stopped listening for ENCOUNTER_START as encounter is overwritten on ENCOUNTER_END anyway. --- src/main.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.lua b/src/main.lua index 3f496b5..d1676b3 100644 --- a/src/main.lua +++ b/src/main.lua @@ -174,11 +174,6 @@ function addon:PLAYER_GUILD_UPDATE(evt, unitId) end end -function addon:ENCOUNTER_START(evt, encounterId, encounterName, difficultyId, raidSize) - self:Debug("ENCOUNTER_START", encounterId, encounterName, difficultyId, raidSize) - self:SetCurrentEncounter(encounterId, encounterName, difficultyId, raidSize) -end - function addon:ENCOUNTER_END(evt, encounterId, encounterName, difficultyId, raidSize, endStatus) self:Debug("ENCOUNTER_END", encounterId, encounterName, difficultyId, raidSize, endStatus) if endStatus == 1 then -- Success @@ -222,7 +217,6 @@ function addon:OnEnable() self.currentZone = {}; self.guildName = nil; - self:RegisterEvent("ENCOUNTER_START") self:RegisterEvent("ENCOUNTER_END") self:RegisterEvent("PLAYER_GUILD_UPDATE") self:RegisterEvent("ZONE_CHANGED_NEW_AREA") @@ -240,7 +234,6 @@ function addon:OnDisable() self.currentZone = {}; self.guildName = nil; - self:UnregisterEvent("ENCOUNTER_START") self:UnregisterEvent("ENCOUNTER_END") self:UnregisterEvent("PLAYER_GUILD_UPDATE") self:UnregisterEvent("ZONE_CHANGED_NEW_AREA") -- 1.7.9.5