Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
153 stars 7 forks source link

[TWW] Inconsistencies in C_Reputation API returns #584

Open ls- opened 2 weeks ago

ls- commented 2 weeks ago

The problem is with C_Reputation.GetWatchedFactionData(), for whatever reason it returns incomplete or partially wrong data. The problematic fields I've found so far are description, atWarWith, isWatched, and isAccountWide which seem to always be "", false, false, and false respectively. I'm not entirely sure if there's more fields that are affected.

For instance, C_Reputation.GetWatchedFactionData() returns:

Dump: value=C_Reputation.GetWatchedFactionData()
[1]={
  hasBonusRepGain=false,
  description="",
  isHeaderWithRep=false,
  isHeader=false,
  currentReactionThreshold=3000,
  canSetInactive=false,
  atWarWith=false,
  isWatched=false,
  isCollapsed=false,
  canToggleAtWar=false,
  nextReactionThreshold=9000,
  factionID=2507,
  name="Dragonscale Expedition",
  currentStanding=0,
  isAccountWide=false,
  isChild=false,
  reaction=5
}

whereas C_Reputation.GetFactionDataByID(2507) returns:

Dump: value=C_Reputation.GetFactionDataByID(2507)
[1]={
  hasBonusRepGain=false,
  description="A joint expedition of the Explorer's League and Reliquary, this fearless group of adventurers, scholars, and crafters seek to uncover the many mysteries of the Dragon Isles.",
  isHeaderWithRep=false,
  isHeader=false,
  currentReactionThreshold=3000,
  canSetInactive=false,
  atWarWith=false,
  isWatched=true,
  isCollapsed=false,
  canToggleAtWar=false,
  nextReactionThreshold=9000,
  factionID=2507,
  name="Dragonscale Expedition",
  currentStanding=3000,
  isAccountWide=true,
  isChild=false,
  reaction=5
}

Edit 1:

canToggleAtWar and canSetInactive are also always false, not sure about the rest, but so far it looks like all bools are always false.