Magic
Magic interface
Types
Represents all the spells in the Ancient spell book.
Represents all the spells in the Arceuus spell book.
A spell book enum that wraps all the magic spells in each of the different spell books.
Represents all the spells in the Lunar spell book.
Parent interface class for all magical spells in any spell book.
Represents all the spells in the Modern spell book.
Functions
Retrieves the current spell book that the user is on.
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.
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.
Validates that a player has a specific spell selected.
Returns the component holding the MagicSpell. If the component cannot be found, an empty component will be returned.
Retrieves the current spell selected in the spell book. If no spell is currently being casted, Spell.NIL will be returned instead.
Returns a boolean value representing whether a spell is ready to be cast. The player must be in the magic tab and have the required level, runes, and items for the cast.