# HG changeset patch # User contrebasse # Date 1292005862 -3600 # Node ID 03f50393cd9c947251a8f06304d867d6e1980477 # Parent 57e83c900a08b2091106dacce11e684aa51ab4c1 Add notes to .toc diff -r 57e83c900a08 -r 03f50393cd9c Degaine.lua --- a/Degaine.lua Fri Dec 10 19:08:14 2010 +0100 +++ b/Degaine.lua Fri Dec 10 19:31:02 2010 +0100 @@ -65,12 +65,19 @@ -- Events to watch local events = { -- no args to watch GOSSIP_SHOW = function() + -- isGossipClosed : + -- if the gossip is already opened, no need to draw weapon + -- UnitName("npc")==UnitName("target") : + -- hack gossips again because there's no emote with non npc + -- you have to target the npc to interact with it + -- things such as boards can't be targeted and start no emote local returnvalue = isGossipClosed and UnitName("npc")==UnitName("target") isGossipClosed = false return returnvalue end, MERCHANT_SHOW = function() - -- hack for the cases where the merchant's frame is opened from a gossip frame + -- hack for the cases where the merchant's frame is opened from a gossip frame : + -- the gossip is closed and the merchant opened but the weapon is not stealthed if (GetTime() - t_lastGossipClosed) < 0.5 then return not wasGossipOpened else diff -r 57e83c900a08 -r 03f50393cd9c Degaine.toc --- a/Degaine.toc Fri Dec 10 19:08:14 2010 +0100 +++ b/Degaine.toc Fri Dec 10 19:31:02 2010 +0100 @@ -1,5 +1,7 @@ ## Interface: 40000 ## Title: Degaine +## Notes: Automagically draw your weapons ! +## Notes-fr: Dégaine vos armes automagiquement ! ## Author: Nodd Tisse-Airain ## Version: @project-version@ ## SavedVariablesPerCharacter: Degaine_isAuto