Method PlayerBotAI:HasAura [-] [+]

Returns true if the given Unit has the named aura.

Unlike Unit:HasAura this takes a spell name and can weigh the stack count and the remaining duration.

Synopsis

hasAura = PlayerBotAI:HasAura( spellName, target, maxStack, checkIsOwner, maxAmount, checkDuration )

Arguments

string spellName
See method description.
Unit target (the)
See method description.
boolean maxStack (false)
See method description.
boolean checkIsOwner (false)
See method description.
number maxAmount

Valid numbers: integers from -2,147,483,647 to 2,147,483,647.

boolean checkDuration (false)
See method description.

Returns

boolean hasAura
See method description.