maplestation_modules/code/modules/magic/story_spells/components/touch_component.dm 
| COMSIG_SPELL_TOUCH_CAN_HIT | Actions done before the actual cast is called. This is the last chance to cancel the spell from being cast. |
|---|---|
| /datum/component/uses_mana/touch_spell | A preset component for touch spells that use mana |
Define Details
COMSIG_SPELL_TOUCH_CAN_HIT 
Actions done before the actual cast is called. This is the last chance to cancel the spell from being cast.
Can be used for target selection or to validate checks on the caster (cast_on).
Returns a bitflag.
- SPELL_CANCEL_CAST will stop the spell from being cast.
- SPELL_NO_FEEDBACK will prevent the spell from calling [proc/spell_feedback] on cast. (invocation), sounds)
- SPELL_NO_IMMEDIATE_COOLDOWN will prevent the spell from starting its cooldown between cast and before after_cast.
Actions done as the main effect of the spell.
For spells without a click intercept, [cast_on] will be the owner. For click spells, [cast_on] is whatever the owner clicked on in casting the spell.