Class Spell
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
A castable spell: adds cast time, mana (or rune/reagent) cost and the spellbook requirement.
public abstract class Spell : ActiveSkill
- Inheritance
-
objectSpell
- Derived
- Inherited Members
Properties
- CastAnimation
Cast animation, taken from this spell's own data asset, once AcquireCastAnimation() has it.
- CastAnimationAddress
Addressables address of the Animancer.ClipTransitionAsset holding this spell's cast animation. Fade durations and speeds live inside that asset, so the class only has to name it.
- CastTime
Seconds the cast takes. 0 means instant.
- Element
Element used for casting requirements (spellbook) and damage.
- ManaCost
Mana consumed per cast, when the character casts from mana.
Methods
- CanUse()
Can this skill be used right now? Buffs and passives override this away.
- WaitForCastAnimationEvent(string)
Plays the cast animation and waits for the moment the spell actually fires.