UnitCanCooperate

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the first unit can cooperate with the second.

cancooperate = UnitCanCooperate(unit1, unit2)

Arguments

unit1
string : UnitId
unit2
string : UnitId - The unit to compare with the first unit.

Returns

cancooperate
boolean - True if the first unit can cooperate with the second.