Mercurial > wow > wowdb-profiler
diff Main.lua @ 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 | a6e36b3f51d6 |
children | fa7f91077c54 |
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