]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed IonStorms sometimes affecting the laws of the current AI and future Cyborgs...
authorThe Canned One <greentopcan@gmail.com>
Thu, 3 Oct 2024 10:32:50 +0000 (12:32 +0200)
committerThe Canned One <greentopcan@gmail.com>
Thu, 3 Oct 2024 10:32:50 +0000 (12:32 +0200)
Content.Server/Silicons/Laws/IonStormSystem.cs

index 637155228cb29dceee65cfede21b805456da77f2..b3c36a2273329ee7ddecdce8c2a64dd0ef9591bc 100644 (file)
@@ -78,11 +78,8 @@ public sealed class IonStormSystem : EntitySystem
             var lawset = lawsets.Pick(_robustRandom);
             laws = _siliconLaw.GetLawset(lawset);
         }
-        else
-        {
-            // clone it so not modifying stations lawset
-            laws = laws.Clone();
-        }
+        // clone it so not modifying stations lawset
+        laws = laws.Clone();
 
         // shuffle them all
         if (_robustRandom.Prob(target.ShuffleChance))