Method PlayerBotAI:CastSpell [-] [+]

Makes the bot cast the given spell on the target.

Unlike Unit:CastSpell this handles facing, the global cooldown and the bot spell selection. The spell can be given either by ID or by name.

Synopsis

casted = PlayerBotAI:CastSpell( spell )
casted = PlayerBotAI:CastSpell( spell, target )

Arguments

int32|strin spell
See method description.
Unit target (the)
See method description.

Returns

boolean casted
See method description.