Mercurial > wow > wowdb-profiler
comparison Main.lua @ 585:6af2ba7adfff tip
Disabled faction standing detection in all cases right now as it causes errors.
| author | MMOSimca | 
|---|---|
| date | Wed, 08 Oct 2025 17:42:03 -0400 | 
| parents | be7931f9225c | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 584:be7931f9225c | 585:6af2ba7adfff | 
|---|---|
| 1201 local npc = NPCEntry(unit_idnum) | 1201 local npc = NPCEntry(unit_idnum) | 
| 1202 local _, class_token = _G.UnitClass("target") | 1202 local _, class_token = _G.UnitClass("target") | 
| 1203 npc.class = class_token | 1203 npc.class = class_token | 
| 1204 | 1204 | 
| 1205 -- Can't do this in instances now, at least using the current method of putting a unit on a tooltip | 1205 -- Can't do this in instances now, at least using the current method of putting a unit on a tooltip | 
| 1206 if not III() then | 1206 if false then | 
| 1207 npc.faction = UnitFactionStanding("target") | 1207 npc.faction = UnitFactionStanding("target") | 
| 1208 end | 1208 end | 
| 1209 | 1209 | 
| 1210 npc.genders = npc.genders or {} | 1210 npc.genders = npc.genders or {} | 
| 1211 npc.genders[private.GENDER_NAMES[_G.UnitSex("target")] or "UNDEFINED"] = true | 1211 npc.genders[private.GENDER_NAMES[_G.UnitSex("target")] or "UNDEFINED"] = true | 
| 2224 if not unit_idnum or not UnitTypeIsNPC(unit_type) then | 2224 if not unit_idnum or not UnitTypeIsNPC(unit_type) then | 
| 2225 return | 2225 return | 
| 2226 end | 2226 end | 
| 2227 | 2227 | 
| 2228 -- Can't do this in instances now, at least not by tooltip unit scanning | 2228 -- Can't do this in instances now, at least not by tooltip unit scanning | 
| 2229 if not III() then | 2229 if false then | 
| 2230 local _, faction_standing = UnitFactionStanding("npc") | 2230 local _, faction_standing = UnitFactionStanding("npc") | 
| 2231 merchant_standing = faction_standing | 2231 merchant_standing = faction_standing | 
| 2232 end | 2232 end | 
| 2233 | 2233 | 
| 2234 current_merchant = NPCEntry(unit_idnum) | 2234 current_merchant = NPCEntry(unit_idnum) | 
