![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Indicates whether the first unit can assist the second unit.
canAssist = UnitCanAssist(unitToAssist, unitToBeAssisted)
Parameters
Arguments
Returns
- canAssist
- boolean - 1 if the unitToAssist can assist the unitToBeAssisted, nil otherwise.
Example
if (UnitCanAssist("player", "target")) then
DEFAULT_CHAT_FRAME:AddMessage("You can assist the target.")
else
DEFAULT_CHAT_FRAME:AddMessage("You cannot assist the target.")
end
Result
A message indicating whether the player can assist the current target is displayed in the default chat frame.
