Method Creature:CanAssistTo [-] [+]

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


canAssist = Creature:CanAssistTo( friend, enemy )

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


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.


boolean canAssist
See method description.

Generated on
©2016 - Eluna Lua Engine