Magic¶
Extends SRL’s TMagic.
Magic.SpellWasCast¶
function TMagic.SpellWasCast(spell: ESpell): Boolean;
Internal helper function to decide wether we cast a spell or not.
Magic.CastSpell¶
function TMagic.CastSpell(spell: ESpell): Boolean; override;
Overrides the existing SRL TMagic.CastSpell() for better cast detection with the usage of WaspLib’s TMagic.SpellWasCast().
Magic.FiltersIsOpen¶
function TMagic.FiltersIsOpen(): Boolean;
Returns true/false if the filters interface of the magic tab is open.
Example:
WriteLn Magic.FiltersIsOpen();
Magic.OpenFilters¶
function TMagic.OpenFilters(): Boolean;
Attempts to open the filters interface of the magic tab. Returns true on success.
Example:
WriteLn Magic.OpenFilters();
Magic.CloseFilters¶
function TMagic.CloseFilters(): Boolean;
Attempts to close the filters interface of the magic tab. Returns true on success.
Example:
WriteLn Magic.CloseFilters();
Magic.GetBookSpellCount¶
function TMagic.GetBookSpellCount(): Int32;
Returns the number of spells declared in SRL for the current spellbook.
Example:
WriteLn Magic.GetBookSpellCount();
Magic.CountSpells¶
function TMagic.CountSpells(): Int32;
Returns the number of spells that exist in your magic tab.
Example:
WriteLn Magic.CountSpells();
if Magic.GetBookSpellCount() <> Magic.CountSpells() then
WriteLn 'Something is wrong!';
Magic.IsFiltered¶
function TMagic.IsFiltered(): Boolean;
Returns wether the spells are currently filtered or not. Can work with the filter interface open or closed as long as the magic tab is open.
Example:
WriteLn Magic.IsFiltered();
Magic.DisableFilters¶
function TMagic.DisableFilters(): Boolean;
Attempts to disable magic spell filters.
Example:
WriteLn Magic.DisableFilters();