This commit is contained in:
ShadowCommander
2023-03-26 11:31:13 -07:00
committed by GitHub
parent 0e5dc41fe8
commit bfc4da9377
85 changed files with 1150 additions and 684 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.Objectives.Interfaces;
using Content.Server.Mind;
using Content.Server.Objectives.Interfaces;
using Content.Server.Traitor;
using JetBrains.Annotations;
@@ -10,7 +11,9 @@ namespace Content.Server.Objectives.Requirements
{
public bool CanBeAssigned(Mind.Mind mind)
{
return mind.HasRole<TraitorRole>();
var entityManager = IoCManager.Resolve<IEntityManager>();
var mindSystem = entityManager.System<MindSystem>();
return mindSystem.HasRole<TraitorRole>(mind);
}
}
}