mob AI work
This commit is contained in:
1 parent
79a9bfd606
commit
de08d0d210
1 file changed
+4
@@ -135,6 +135,10 @@ public class MovementUtilities {
|
||||
|
||||
|
||||
public static boolean canMove(Mob agent) {
|
||||
|
||||
if(agent.isMoving())
|
||||
return false;
|
||||
|
||||
if (agent.getMobBase() != null && Enum.MobFlagType.SENTINEL.elementOf(agent.getMobBase().getFlags()))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user