Singulo eats unpowered containment gens (#8343)

This commit is contained in:
wrexbe
2022-05-26 17:35:19 -07:00
committed by GitHub
parent 821df271c4
commit 33c03fa0a0
3 changed files with 6 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ namespace Content.Server.Singularity.EntitySystems
!EntityManager.HasComponent<GhostComponent>(entity) &&
(component.Level > 4 ||
!EntityManager.HasComponent<ContainmentFieldComponent>(entity) &&
!EntityManager.HasComponent<ContainmentFieldGeneratorComponent>(entity));
!(EntityManager.TryGetComponent<ContainmentFieldGeneratorComponent>(entity, out var containFieldGen) && containFieldGen.CanRepel(component)));
}
private void HandleDestroy(ServerSingularityComponent component, EntityUid entity)