Method Creature:CanAssistTo [-] [+]

Returns true if the Creature can assist friend in combat against enemy, and returns false otherwise.

Synopsis

canAssist = Creature:CanAssistTo( friend, enemy )

canAssist = Creature:CanAssistTo( friend, enemy, checkFaction )

Arguments

Unit friend

The Unit we will be assisting.

Unit enemy

The Unit that we would attack if we assist friend.

boolean checkFaction (true)

If true, the Creature must be the same faction as friend to assist.

Returns

boolean canAssist
See method description.

Generated on 11/04/2018
©2016 - Eluna Lua Engine