Fixes infinite machine guns (#95220)

## About The Pull Request

Fixes infinite `do_after()`s making infinite machine guns by making the
`do_after()`'s `target` the relevant machine gun.

## Why It's Good For The Game

fixes #95218

## Changelog
🆑

fix: Fixed infinite machine guns

/🆑
This commit is contained in:
Leland Kemble
2026-02-22 09:47:12 -05:00
committed by GitHub
parent d1ea58cd9f
commit 4c0d9485b5
@@ -57,7 +57,7 @@
return ITEM_INTERACT_SKIP_TO_ATTACK
used_wrench.play_tool_sound(user)
user.balloon_alert(user, "undeploying...")
if(!do_after(user, undeploy_time))
if(!do_after(user, undeploy_time, src))
return ITEM_INTERACT_BLOCKING
var/obj/undeployed_object = new spawned_on_undeploy()
//Keeps the health the same even if you redeploy the gun