Add missing SIGNAL_HANDLERs (#62115)

Add missing SIGNAL_HANDLERs
This commit is contained in:
Mothblocks
2021-10-14 23:01:02 -07:00
committed by GitHub
parent 11402f6ae6
commit 3be6f04b5c
13 changed files with 24 additions and 3 deletions
@@ -9,10 +9,11 @@
RegisterSignal(src, COMSIG_PROJECTILE_ON_HIT, .proc/on_projectile_hit)
/obj/effect/proc_holder/spell/aimed/sdql/proc/on_projectile_hit(source, firer, target)
SIGNAL_HANDLER
var/datum/component/sdql_executor/executor = GetComponent(/datum/component/sdql_executor)
if(!executor)
CRASH("[src]'s SDQL executor component went missing!")
executor.execute(list(target), owner.resolve())
INVOKE_ASYNC(executor, /datum/component/sdql_executor/proc/execute, list(target), owner.resolve())
/obj/effect/proc_holder/spell/aoe_turf/sdql
name = "AoE SDQL Spell"
@@ -140,7 +141,8 @@
user.update_inv_hands()
/obj/effect/proc_holder/spell/targeted/touch/sdql/proc/on_touch_attack(source, target, user)
SIGNAL_HANDLER
var/datum/component/sdql_executor/executor = GetComponent(/datum/component/sdql_executor)
if(!executor)
CRASH("[src]'s SDQL executor component went missing!")
executor.execute(list(target), user)
INVOKE_ASYNC(executor, /datum/component/sdql_executor/proc/execute, list(target), user)