From 958bf9f277bec10864734bb2d09dc2c46573c8df Mon Sep 17 00:00:00 2001 From: Drathek <76988376+Drulikar@users.noreply.github.com> Date: Wed, 15 May 2024 01:53:28 -0700 Subject: [PATCH] Fixes issuing a null order (#6286) # About the pull request This PR fixes issuing no order if you pick no order in the input list (clicking the X). Not only does it look goofy you give the order to ! it does put your orders on cooldown for no reason. # Explain why it's good for the game Fixes ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/7c5387fa-32d2-405e-947d-c69eb6cbe25f) # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: Drathek fix: Fixed issuing a null order via the issue order verb. /:cl: --- code/modules/mob/living/carbon/human/powers/issue_order.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/powers/issue_order.dm b/code/modules/mob/living/carbon/human/powers/issue_order.dm index 1becf805c027..5863bf2ea28f 100644 --- a/code/modules/mob/living/carbon/human/powers/issue_order.dm +++ b/code/modules/mob/living/carbon/human/powers/issue_order.dm @@ -22,7 +22,7 @@ if(order == "help") to_chat(src, SPAN_NOTICE("
Orders give a buff to nearby soldiers for a short period of time, followed by a cooldown, as follows:
Move - Increased mobility and chance to dodge projectiles.
Hold - Increased resistance to pain and combat wounds.
Focus - Increased gun accuracy and effective range.
")) return - if(order == "cancel") + if(!order || order == "cancel") return if(!command_aura_available)