From 5a27cda46784c9bf1eb1ae94a9a51384d41c1810 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Mon, 26 Apr 2010 17:38:09 +0200 Subject: [PATCH] Reenable when zoning/reloading UI. --- Kungaloosh.toc | 2 +- kungaloosh.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Kungaloosh.toc b/Kungaloosh.toc index 352ff33..cbcc20c 100644 --- a/Kungaloosh.toc +++ b/Kungaloosh.toc @@ -1,7 +1,7 @@ ## Interface: 30300 ## Title: Kungaloosh ## Notes: Automagic raid marking when tanking -## Version: 1.2 +## Version: 1.3 ## Author: Christopher Rosell ## X-Email: chrippa@gmail.com ## X-Category: Combat diff --git a/kungaloosh.lua b/kungaloosh.lua index a291c3c..b1167fc 100644 --- a/kungaloosh.lua +++ b/kungaloosh.lua @@ -14,6 +14,7 @@ function addon:Initialize() self:RegisterEvent'ADDON_LOADED' self:RegisterEvent'PLAYER_ROLES_ASSIGNED' + self:RegisterEvent'PLAYER_ENTERING_WORLD' end function addon:ADDON_LOADED(name) @@ -33,6 +34,8 @@ function addon:ADDON_LOADED(name) self:CreateConfig() self:UnregisterEvent'ADDON_LOADED' + + self:EnableIfTank() end function addon:Print(...) @@ -43,6 +46,10 @@ function addon:PLAYER_ROLES_ASSIGNED() self:EnableIfTank() end +function addon:PLAYER_ENTERING_WORLD() + self:EnableIfTank() +end + function addon:PLAYER_REGEN_ENABLED() self:ResetState() end -- 1.7.9.5