styyx-util 1.0
Utility Header for SKSE Plugin development
Loading...
Searching...
No Matches
StyyxUtil::MagicUtil Struct Reference

#include <st-magic.h>

Static Public Member Functions

static bool IsSpellPlayable (const RE::SpellItem *spell)
 Check if a spell is playable, as in, able to be cast.
static bool IsPermanent (RE::MagicItem *item)
 Check if a magic item is permanent.
static void ApplySpell (RE::Actor *caster, RE::Actor *target, RE::SpellItem *spell)
 Casts Spell from caster to actor. If the spell is permanent (MagicUtil::IsPermanent) it adds the spell.

Member Function Documentation

◆ ApplySpell()

void StyyxUtil::MagicUtil::ApplySpell ( RE::Actor * caster,
RE::Actor * target,
RE::SpellItem * spell )
inlinestatic

Casts Spell from caster to actor. If the spell is permanent (MagicUtil::IsPermanent) it adds the spell.

Parameters
casterThe Actor casting the spell
targetThe Target for the spell
spellThe spell being cast
Here is the call graph for this function:

◆ IsPermanent()

bool StyyxUtil::MagicUtil::IsPermanent ( RE::MagicItem * item)
inlinestatic

Check if a magic item is permanent.

Parameters
itemThe magic item. Also accepts SpellItem
Returns
True if spell is Disease, Ability or Addiction
Note
Credits: KernalsEgg for ApplySpell and IsPermanent
Blade and Blunt by colinswrath
Here is the caller graph for this function:

◆ IsSpellPlayable()

bool StyyxUtil::MagicUtil::IsSpellPlayable ( const RE::SpellItem * spell)
inlinestatic

Check if a spell is playable, as in, able to be cast.

Parameters
spellThe spell to check
Returns
True if spell is a castable spell

The documentation for this struct was generated from the following file: