Pre-cast Behaviours
Behaviours are code or evaluations that will run before the ability is cast. They can be used both as additions and gates (prohibit an ability from being cast).
Two behaviours are provided as an example of what can be achieved with pre-cast behaviours:
AddModifierToCasterOnCondition- adds a Modifier to the caster if it has a certain condition (example: if caster has the enraged condition, add the double damage modifier)CancelCastOnCondition- Stops the ability from being cast when the caster has a given condition.
You are encouraged to create your own behaviours by extending the base class PreCastBehaviourSO.cs and then creating instances of them in the editor (add the attribute [CreateAssetMenu(menuName = "YourGame/BehavaiourName", fileName = "behaviour.asset")]to your class).
SPAM Framework Documentation