changeset 43:3fbe79addc87

Talking while moving now draw weapons
author contrebasse
date Sun, 27 Feb 2011 20:03:10 +0100
parents 50c865dd6563
children 1967c9a3c5c2
files Degaine.lua
diffstat 1 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Degaine.lua	Sun Jan 16 00:17:36 2011 +0100
+++ b/Degaine.lua	Sun Feb 27 20:03:10 2011 +0100
@@ -1,4 +1,4 @@
-local AddonName = ...
+local AddonName, T = ...
 -- Draw your weapons automagically
 
 
@@ -80,6 +80,11 @@
 	end
 end
 local start = function(arg_delay)
+
+	--@debug@
+	--DEFAULT_CHAT_FRAME:AddMessage("Go !")
+	--@end-debug@
+
 	if Degaine_isAuto and not InCombatLockdown() then
 		t_left = arg_delay or delay
 		DegaineFrame:SetScript("OnUpdate", Degaine_OnUpdate)
@@ -168,12 +173,16 @@
 	-- Archaeology ?
 }
 
+--[[
+-- Was used when moving prevented to play the emote when talking
+-- Was needed for CHAT_MSG_SAY and CHAT_MSG_YELL
 local function playerIsNotMoving()
 	return GetUnitSpeed("player") == 0
 end
+--]]
 local events2playername = { -- the 2nd arg is playername
-	CHAT_MSG_SAY = playerIsNotMoving,
-	CHAT_MSG_YELL = playerIsNotMoving,
+	CHAT_MSG_SAY = true,
+	CHAT_MSG_YELL = true,
 	CHAT_MSG_TEXT_EMOTE = true, -- the emote is not shown, but the weapon is stealthed
 }
 
@@ -374,4 +383,3 @@
 DegaineFrame:RegisterEvent("ADDON_LOADED")
 DegaineFrame:RegisterEvent("PLAYER_LOGIN")
 activate()
-