m
Move page script moved page API UnitCanAssist to WoW:API UnitCanAssist without leaving a redirect
(New material) |
m (Move page script moved page API UnitCanAssist to WoW:API UnitCanAssist without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
Indicates whether the first unit can assist the second unit. | Indicates whether the first unit can assist the second unit. | ||
canAssist = | canAssist = UnitCanAssist(unitToAssist, unitToBeAssisted); | ||
==Parameters== | ==Parameters== | ||
| Line 12: | Line 12: | ||
==Example== | ==Example== | ||
if (UnitCanAssist("player", "target")) then | if (UnitCanAssist("player", "target")) then | ||
DEFAULT_CHAT_FRAME:AddMessage("You can assist the target.") | DEFAULT_CHAT_FRAME:AddMessage("You can assist the target.") | ||