Skip to content

Commit

Permalink
not my fault! (#26811)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwertytoforty committed Sep 17, 2024
1 parent 8925b33 commit 9b0967a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/projectiles/firing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b0967a

Please sign in to comment.