Quantcast

Reenable when zoning/reloading UI.

Christopher Rosell [04-26-10 - 15:38]
Reenable when zoning/reloading UI.
Filename
Kungaloosh.toc
kungaloosh.lua
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