Mercurial > wow > wowdb-profiler
changeset 135:3b9d44976319
For the moment, ignore faction names which are identical to the NPC name.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 24 Sep 2012 12:55:11 -0500 |
parents | 5e558c060114 |
children | fa7f91077c54 |
files | Main.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Mon Sep 24 11:59:50 2012 -0500 +++ b/Main.lua Mon Sep 24 12:55:11 2012 -0500 @@ -401,6 +401,7 @@ function UnitFactionStanding(unit) + local unit_name = _G.UnitName(unit) UpdateFactionData() DatamineTT:ClearLines() DatamineTT:SetUnit(unit) @@ -408,7 +409,7 @@ for line_index = 1, DatamineTT:NumLines() do local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText():trim() - if faction_name and faction_standings[faction_name] then + if faction_name and faction_name ~= unit_name and faction_standings[faction_name] then return faction_name, faction_standings[faction_name] end end