/tg/ Station 13 - Modules - TypesDefine Details

maplestation_modules/code/modules/magic/story_spells/components/touch_component.dm

COMSIG_SPELL_TOUCH_CAN_HITActions done before the actual cast is called. This is the last chance to cancel the spell from being cast.
/datum/component/uses_mana/touch_spellA 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.

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.