#include <st-magic.h>
|
| static bool | IsSelfTargetSpell (RE::MagicItem *a_spell) |
| | Check if spell is self targeting.
|
| static bool | IsSpellPlayable (const RE::MagicItem *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 |
◆ IsSelfTargetSpell()
| bool StyyxUtil::MagicUtil::IsSelfTargetSpell |
( |
RE::MagicItem * | a_spell | ) |
|
|
inlinestatic |
Check if spell is self targeting.
- Parameters
-
| a_spell | The spell to check |
- Returns
- true if the spell is self targeting
◆ IsSpellPlayable()
| bool StyyxUtil::MagicUtil::IsSpellPlayable |
( |
const RE::MagicItem * | 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: