Method PlayerBotAI:CanCastSpell [-] [+]
Returns true if the bot can currently cast the given spell on the target.
Unlike Unit:CastSpell this weighs facing, range, cooldowns and the bot state. The spell can be given either by ID or by name.
Synopsis
canCast = PlayerBotAI:CanCastSpell( spell )
canCast = PlayerBotAI:CanCastSpell( spell, target )
Arguments
int32|strin spell- See method description.
Unit target (the)- See method description.
Returns
boolean canCast- See method description.