Make clumsy entities able to shoot funny weapons (#18156)

* Make clumsy entities able to shoot funny weapons

* remove unneeded line
This commit is contained in:
Arendian
2023-07-19 23:22:07 +02:00
committed by GitHub
parent 3caa1ea356
commit 580d481710
5 changed files with 13 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ public sealed partial class GunSystem : SharedGunSystem
// Try a clumsy roll
// TODO: Who put this here
if (TryComp<ClumsyComponent>(user, out var clumsy))
if (TryComp<ClumsyComponent>(user, out var clumsy) && gun.ClumsyProof == false)
{
for (var i = 0; i < ammo.Count; i++)
{