From 7a702221ef2e409913856088b469d4adc7ad1f3e Mon Sep 17 00:00:00 2001 From: Errant <35878406+Errant-4@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:10:15 +0000 Subject: [PATCH] fix attack stamina cost check (#18872) Co-authored-by: Errant <35878406+errant@users.noreply.github.com> --- Content.Shared/Damage/Systems/StaminaSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Damage/Systems/StaminaSystem.cs b/Content.Shared/Damage/Systems/StaminaSystem.cs index 44474623a5..31abbf039c 100644 --- a/Content.Shared/Damage/Systems/StaminaSystem.cs +++ b/Content.Shared/Damage/Systems/StaminaSystem.cs @@ -249,8 +249,9 @@ public sealed partial class StaminaSystem : EntitySystem /// public bool TryTakeStamina(EntityUid uid, float value, StaminaComponent? component = null, EntityUid? source = null, EntityUid? with = null) { + // Something that has no Stamina component automatically passes stamina checks if (!Resolve(uid, ref component, false)) - return false; + return true; var oldStam = component.StaminaDamage;