Adds missing istype() check before the secure brief case emag check.

Fixes #11900.
This commit is contained in:
PsiOmegaDelta
2016-01-06 17:42:56 +01:00
parent 4ed1e118fc
commit 39bbca416a

View File

@@ -33,7 +33,7 @@
attackby(obj/item/weapon/W as obj, mob/user as mob)
if(locked)
if (emag_act(INFINITY, user, "You slice through the lock of \the [src]"))
if (istype(W, /obj/item/weapon/melee/energy/blade) && emag_act(INFINITY, user, "You slice through the lock of \the [src]"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, src.loc)
spark_system.start()