Magic

open class Magic

Utilities for interacting with the Magic Tab.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
A magic spellbook

Functions

Link copied to clipboard
open fun castOn(spellName: String, target: Clickable): Boolean
Casts the specified spell on the specified target.
Link copied to clipboard
Closes the spell filters screen
Link copied to clipboard
Selects the given spell, if it is not already selected
Link copied to clipboard
Gets the currently active spellbook
Link copied to clipboard
Gets the name of the selected spell in the Magic Tab.
Link copied to clipboard
Determines whether or not a spell is selected.
Link copied to clipboard
Checks if the spell filters screen is open
Link copied to clipboard
open fun isSpellSelected(name: String): Boolean
Checks if a spell with the specified name is selected
Link copied to clipboard
open fun selectSpell(name: String): Boolean
open fun selectSpell(name: String, action: String): Boolean
Selects a given spell based on its name in the Magic Tab.