# HG changeset patch # User James D. Callahan III # Date 1346096237 18000 # Node ID 5da0e8da22dea4a85f2b0bbc801cde3eee1bc314 # Parent 2ab6c802b4856647273680e69634a679550064c4 Detect and record Flight Master NPCs. diff -r 2ab6c802b485 -r 5da0e8da22de Main.lua --- 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)