Mercurial > wow > wowdb-profiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
134:5e558c060114 | 135:3b9d44976319 |
---|---|
399 "EXALTED", | 399 "EXALTED", |
400 } | 400 } |
401 | 401 |
402 | 402 |
403 function UnitFactionStanding(unit) | 403 function UnitFactionStanding(unit) |
404 local unit_name = _G.UnitName(unit) | |
404 UpdateFactionData() | 405 UpdateFactionData() |
405 DatamineTT:ClearLines() | 406 DatamineTT:ClearLines() |
406 DatamineTT:SetUnit(unit) | 407 DatamineTT:SetUnit(unit) |
407 | 408 |
408 for line_index = 1, DatamineTT:NumLines() do | 409 for line_index = 1, DatamineTT:NumLines() do |
409 local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText():trim() | 410 local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText():trim() |
410 | 411 |
411 if faction_name and faction_standings[faction_name] then | 412 if faction_name and faction_name ~= unit_name and faction_standings[faction_name] then |
412 return faction_name, faction_standings[faction_name] | 413 return faction_name, faction_standings[faction_name] |
413 end | 414 end |
414 end | 415 end |
415 end | 416 end |
416 | 417 |