[MIRROR] Add missing SIGNAL_HANDLERs [MDB IGNORE] (#8834)

* Add missing SIGNAL_HANDLERs (#62115)

Add missing SIGNAL_HANDLERs

* Add missing SIGNAL_HANDLERs

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-10-15 12:32:41 -04:00
committed by GitHub
co-authored by Mothblocks
parent 177d0d5987
commit 0d5eb8a0c4
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)