mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
19 lines
563 B
Plaintext
19 lines
563 B
Plaintext
/obj/effect/proc_holder/spell/aoe_turf/knock
|
|
name = "Knock"
|
|
desc = "This spell opens nearby doors and does not require wizard garb."
|
|
|
|
school = "transmutation"
|
|
charge_max = 100
|
|
clothes_req = 0
|
|
invocation = "AULIE OXIN FIERA"
|
|
invocation_type = "whisper"
|
|
range = 3
|
|
|
|
/obj/effect/proc_holder/spell/aoe_turf/knock/cast(list/targets)
|
|
for(var/turf/T in targets)
|
|
for(var/obj/machinery/door/door in T.contents)
|
|
spawn(1)
|
|
if(istype(door,/obj/machinery/door/airlock))
|
|
door:unlock(1) //forced because it's magic!
|
|
door.open()
|
|
return |