Mercurial > wow > wowdb-profiler
changeset 232:4ab275c52d7f
Use "npc" instead of "target" during TRAINER_SHOW so only the correct NPC is attributed.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 12 Feb 2013 13:07:05 -0600 |
parents | 68ddfd7442bf |
children | 19cd74910fc9 |
files | Main.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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