Method PlayerBot.BotCanCastSpell [-] [+]

Check whether the bot can cast a given spell on an optional target.

Synopsis

canCast = Playerbot.BotCanCastSpell( guidLow, spellId, target )

Arguments

number guidLow

Bot GUID low.

Valid numbers: integers from 0 to 4,294,967,295.

number spellId

Spell ID.

Valid numbers: integers from 0 to 4,294,967,295.

nit|ni target

Optional target unit.

Returns

boolean canCast

True if the bot can cast the spell.

Generated on
©2026 - ALE Lua Engine