mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user