Mercurial > wow > wowdb-profiler
diff Main.lua @ 88:5da0e8da22de
Detect and record Flight Master NPCs.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 27 Aug 2012 14:37:17 -0500 |
parents | 2ab6c802b485 |
children | 09b6773252ad |
line wrap: on
line diff
--- a/Main.lua Mon Aug 27 12:21:29 2012 -0500 +++ b/Main.lua Mon Aug 27 14:37:17 2012 -0500 @@ -63,6 +63,7 @@ QUEST_COMPLETE = true, QUEST_DETAIL = true, QUEST_LOG_UPDATE = true, + TAXIMAP_OPENED = true, TRAINER_SHOW = true, UNIT_QUEST_LOG_CHANGED = true, UNIT_SPELLCAST_FAILED = "HandleSpellFailure", @@ -1292,6 +1293,17 @@ end +function WDP:TAXIMAP_OPENED(event_name) + local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) + local npc = NPCEntry(unit_idnum) + + if not npc then + return + end + npc.flight_master = true +end + + function WDP:TRAINER_SHOW() local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) local npc = NPCEntry(unit_idnum)