mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
C_PlayerCache.GetPlayerInfoByName read only the persistent NameCache, so it returned nothing for every name while that cache was off, even for a player standing next to you. It now resolves the name to a GUID first (Player::Info::GuidFromName): the engine's own by-name search behind TargetByName (party and raid members, including out-of-range ones, then every visible player), then the friends list, then the persistent cache. The result is built from that GUID by the same code as GetPlayerInfoByGUID. The engine search is wrapped once as Unit::Identity::FindGuidByName, which UnitTokenFromName now uses too.