cast
Attempts to cast the given MagicSpell. This method will switch to the spell book tab if it is not already selected. A boolean value will be returned representing whether the spell's component was successfully clicked or not.
Return
true
if the spell component was successfully clicked, false
otherwise.
Parameters
spell
The spell to cast.
Attempts to cast the given MagicSpell with specified action (to support redirected teleports). This method will switch to the spell book tab if it is not already selected. A boolean value will be returned representing whether the spell's component was successfully clicked or not.
Return
true
if the spell component was successfully clicked, false
otherwise.
Parameters
spell
The spell to cast.
action
the action type