# HG changeset patch # User James D. Callahan III # Date 1360696025 21600 # Node ID 4ab275c52d7f8a2f811162709344605ea8738e6d # Parent 68ddfd7442bf98154729685093c1e9bcf3f94d65 Use "npc" instead of "target" during TRAINER_SHOW so only the correct NPC is attributed. diff -r 68ddfd7442bf -r 4ab275c52d7f Main.lua --- a/Main.lua Thu Feb 07 13:54:14 2013 -0600 +++ b/Main.lua Tue Feb 12 13:07:05 2013 -0600 @@ -1994,13 +1994,13 @@ function WDP:TRAINER_SHOW(event_name) - local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) + local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("npc")) local trainer = NPCEntry(unit_idnum) if not trainer then return end - local trainer_standing = select(2, UnitFactionStanding("target")) + local trainer_standing = select(2, UnitFactionStanding("npc")) trainer.teaches = trainer.teaches or {} private.trainer_shown = true