Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns whether you can RaF summon a particular unit.

summonable = CanSummonFriend(unit)

Arguments[]

unit
string : UnitId - The player to check whether you can summon.

Returns[]

summonable
boolean - 1 if you can summon the unit using RaF, nil otherwise.

Example[]

The snippet below checks whether you can summon the target, and, if so, whispers and summons her to you.

local t = "target"; 
if CanSummonFriend(t) then 
  SendChatMessage("I am summoning you!","WHISPER",nil,t) 
  SummonFriend(t) 
end
Advertisement