not my fault! (#26811)

This commit is contained in:
Qwertytoforty
2024-09-17 17:09:21 +00:00
committed by GitHub
parent 8925b33df4
commit 9b0967a709
+3 -1
View File
@@ -38,10 +38,12 @@
/obj/item/ammo_casing/proc/throw_proj(atom/target, turf/targloc, mob/living/user, params, spread, atom/firer_source_atom)
var/turf/curloc = get_turf(firer_source_atom)
if(!istype(curloc)) // False-bottomed briefcase check.
if(!istype(curloc)) // False-bottomed briefcase check / shell launch system check.
var/obj/item/holding = user.get_active_hand()
if(istype(holding, /obj/item/storage/briefcase/false_bottomed))
curloc = get_turf(holding)
if(istype(firer_source_atom, /obj/item/gun/projectile/revolver/doublebarrel/shell_launcher))
curloc = get_turf(user)
if(!istype(targloc) || !istype(curloc) || !BB)
return
BB.ammo_casing = src