]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix incorrect conditions on black pepper's forced cough (#38783)
authorāda <ss.adasts@gmail.com>
Sun, 6 Jul 2025 00:27:08 +0000 (19:27 -0500)
committerGitHub <noreply@github.com>
Sun, 6 Jul 2025 00:27:08 +0000 (17:27 -0700)
no one to blame but myself

Co-authored-by: iaada <iaada@users.noreply.github.com>
Content.Shared/EntityEffects/EffectConditions/InternalsCondition.cs

index 31294bc21fbc7d746fadeb8beb262ec2b0bded80..cb30ef70c78c55ca75660d4c4c0ee0e2f1a647df 100644 (file)
@@ -19,7 +19,7 @@ public sealed partial class Internals : EntityEffectCondition
         if (!args.EntityManager.TryGetComponent(args.TargetEntity, out InternalsComponent? internalsComp))
             return !UsingInternals; // They have no internals to wear.
 
-        var internalsState = internalsComp.GasTankEntity == null;
+        var internalsState = internalsComp.GasTankEntity != null; // If gas tank is not null, they are wearing internals
         return UsingInternals == internalsState;
     }