# HG changeset patch # User contrebasse # Date 1298833390 -3600 # Node ID 3fbe79addc874f7caafe2c80a5e623b42a3ab421 # Parent 50c865dd6563b56ed3f7ac6570418e6f0a4afadc Talking while moving now draw weapons diff -r 50c865dd6563 -r 3fbe79addc87 Degaine.lua --- 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() -