Revert "Gamerule Entities" (#15724)
This commit is contained in:
@@ -13,9 +13,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
|
||||
public IObjectiveCondition GetAssigned(Mind.Mind mind)
|
||||
{
|
||||
//todo shit of a fuck
|
||||
var entityMgr = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
var traitors = entityMgr.EntitySysManager.GetEntitySystem<TraitorRuleSystem>().GetOtherTraitorsAliveAndConnected(mind).ToList();
|
||||
List<Traitor.TraitorRole> removeList = new();
|
||||
|
||||
@@ -25,7 +23,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
{
|
||||
foreach (var condition in objective.Conditions)
|
||||
{
|
||||
if (condition is RandomTraitorProgressCondition)
|
||||
if (condition.GetType() == typeof(RandomTraitorProgressCondition))
|
||||
{
|
||||
removeList.Add(traitor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user