changeset 21:e3f92fae450b

When in combat, disable spells only
author contrebasse
date Fri, 10 Dec 2010 20:05:58 +0100
parents 4da97c12564f
children ddcb7021838b
files Degaine.lua
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Degaine.lua	Fri Dec 10 19:37:08 2010 +0100
+++ b/Degaine.lua	Fri Dec 10 20:05:58 2010 +0100
@@ -9,17 +9,17 @@
 --     (it's not possible to know if you were sitting or standing before)
 
 --@debug@
-local debug = false
+local debug = true
 --@end-debug@
 
 
 ---------------------------------------------------------------
 -- Globals to local
 ---------------------------------------------------------------
--- These need to be globals
+-- These need to be globals :
 -- GLOBALS: Degaine_ToggleAuto, Degaine_isAuto, BINDING_HEADER_DEGAINE
 
--- It doesn't matter if they are globals
+-- It doesn't matter if they are globals, rarely unsed :
 -- GLOBALS: DEFAULT_CHAT_FRAME
 
 -- Lua functions
@@ -207,7 +207,8 @@
 		t_lastGossipClosed = GetTime()
 
 	elseif event == "PLAYER_REGEN_ENABLED" then
-		desactivate()
+		for k,_ in pairs(events1player) do DegaineFrame:UnregisterEvent(k) end
+		--desactivate()
 	elseif event == "PLAYER_REGEN_DISABLED" then
 		activate()