Fix Some npcs just standing there when attacked.

This commit is contained in:
hondacrx
2017-06-27 01:06:39 -04:00
parent 1713c12684
commit 1b16b9a134
+3 -2
View File
@@ -18,6 +18,7 @@
using Framework.Constants;
using Game.Entities;
using Game.Movement;
using System.Collections.Generic;
namespace Game.AI
{
@@ -88,11 +89,11 @@ namespace Game.AI
else if (creature.IsCritter() && !creature.HasUnitTypeMask(UnitTypeMask.Guardian))
return new CritterAI(creature);
/*if (!creature.IsCivilian() && !creature.IsNeutralToAll())
if (!creature.IsCivilian() && !creature.IsNeutralToAll())
return new AggressorAI(creature);
if (creature.IsCivilian() || creature.IsNeutralToAll())
return new ReactorAI(creature);*/
return new ReactorAI(creature);
return new NullCreatureAI(creature);
}