#include <st-magic.h>
|
| 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.
|
◆ 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
-
| caster | The Actor casting the spell |
| target | The Target for the spell |
| spell | The spell being cast |
◆ IsPermanent()
| bool StyyxUtil::MagicUtil::IsPermanent |
( |
RE::MagicItem * | item | ) |
|
|
inlinestatic |
Check if a magic item is permanent.
- Parameters
-
| item | The 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
◆ IsSpellPlayable()
| bool StyyxUtil::MagicUtil::IsSpellPlayable |
( |
const RE::SpellItem * | spell | ) |
|
|
inlinestatic |
Check if a spell is playable, as in, able to be cast.
- Parameters
-
- Returns
- True if spell is a castable spell
The documentation for this struct was generated from the following file: