changeset 17:c83103057b7a

Attempt to hack gossips again because there's no emote with non npc
author contrebasse
date Fri, 10 Dec 2010 19:07:18 +0100
parents 1bd6494f848d
children 57e83c900a08
files Degaine.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Degaine.lua	Fri Dec 10 18:40:18 2010 +0100
+++ b/Degaine.lua	Fri Dec 10 19:07:18 2010 +0100
@@ -65,7 +65,7 @@
 -- Events to watch
 local events = { -- no args to watch
 	GOSSIP_SHOW = function()
-		local returnvalue = isGossipClosed
+		local returnvalue = isGossipClosed and UnitName("npc")==UnitName("target")
 		isGossipClosed = false
 		return returnvalue
 	end,