Mind ecs (#14412)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user