Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API IsReferAFriendLinked

Last wiki revision 2022-07-26

Determines whether the given unit is linked to the player via the Recruit-A-Friend feature. isLinked = IsReferAFriendLinked(unit)

  • unit: : UnitId
  • isLinked:Flag : 1 if the unit is RAF-linked to the player, nil otherwise.

function HasRecruitAFriendBonus local numPartyMembers = GetNumPartyMembers; if numPartyMembers > 0 then local memberID = 1; while memberID <= numPartyMembers do if GetPartyMember(memberID) == 1 then local member = "party" .. memberID; if UnitIsVisible(member) and IsReferAFriendLinked(member) then return true; end end memberID = memberID + 1; end end return false; end

Source

https://warcraft.wiki.gg/wiki/API_IsReferAFriendLinked · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.