Skip to content

Commit

Permalink
фикс зомби мехов
Browse files Browse the repository at this point in the history
  • Loading branch information
babaevlsdd committed Dec 27, 2024
1 parent 49c8596 commit 7fee524
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Content.Server/Zombies/ZombieSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Content.Shared.Damage;
using Content.Shared.Humanoid;
using Content.Shared.Inventory;
using Content.Shared.Mech.Components; // Sunrise-Edit
using Content.Shared.Mind;
using Content.Shared.Mobs;
using Content.Shared.Mobs.Components;
Expand Down Expand Up @@ -352,6 +353,13 @@ private void OnMeleeHit(EntityUid uid, ZombieComponent component, MeleeHitEvent
if (args.User == entity)
continue;

// Sunrise-Edit-Start

if (HasComp<MechComponent>(entity))
continue;

// Sunrise-Edit-End

if (!TryComp<MobStateComponent>(entity, out var mobState))
continue;

Expand Down

0 comments on commit 7fee524

Please sign in to comment.