fixed bufffoodreminder outside trials notification
René Welbers [01-20-16 - 17:06]
fixed bufffoodreminder outside trials notification
diff --git a/RaidNotifier.lua b/RaidNotifier.lua
index dbc5292..8b99955 100644
--- a/RaidNotifier.lua
+++ b/RaidNotifier.lua
@@ -5,7 +5,7 @@ RaidNotifier = RaidNotifier or {}
RaidNotifier.name = 'RaidNotifier'
RaidNotifier.slash = '/rn'
-RaidNotifier.version = '1.2.0'
+RaidNotifier.version = '1.2.1'
RaidNotifier.versionDB = 1
RaidNotifier.loaded = false
RaidNotifier.author = 'silentgecko'
@@ -118,7 +118,9 @@ function RaidNotifier.addEventListeners()
local raidId = GetCurrentParticipatingRaidId()
-- add general
- EVENT_MANAGER:RegisterForEvent(self.name, EVENT_EFFECT_CHANGED, self.generalBuffFoodReminder)
+ if raidId > 0 then
+ EVENT_MANAGER:RegisterForEvent(self.name, EVENT_EFFECT_CHANGED, self.generalBuffFoodReminder)
+ end
-- add sanctum
if raidId == 3 then
diff --git a/RaidNotifier.txt b/RaidNotifier.txt
index c3dc586..9d321a0 100644
--- a/RaidNotifier.txt
+++ b/RaidNotifier.txt
@@ -1,7 +1,7 @@
## Title: |cEFEBBERaidNotifier|r
## Description: Displays on-screen notifications on different events during trials.
## Author: |c009ad6silentgecko|r
-## Version: 1.2.0
+## Version: 1.2.1
## APIVersion: 100013
## SavedVariables: RNVars
## OptionalDependsOn: LibAddonMenu-2.0