diff --git a/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs b/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs index c773d2f8e9..d690015857 100644 --- a/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs +++ b/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs @@ -28,7 +28,7 @@ namespace Content.Server.Weapon.Melee.Components [ViewVariables(VVAccess.ReadWrite)] [DataField("arc")] - public string Arc { get; set; } = "default"; + public string? Arc { get; set; } = "default"; [ViewVariables(VVAccess.ReadWrite)] [DataField("arcwidth")] diff --git a/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs b/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs index 7a67b48564..5b47fc89b4 100644 --- a/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs +++ b/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs @@ -124,6 +124,8 @@ namespace Content.Server.Weapon.Melee private void OnWideAttack(EntityUid owner, MeleeWeaponComponent comp, WideAttackEvent args) { + if (string.IsNullOrEmpty(comp.Arc)) return; + args.Handled = true; var curTime = _gameTiming.CurTime;