Action blocker for changing direction

This commit is contained in:
zumorica
2020-05-13 19:26:39 +02:00
parent c3c5b87fd5
commit a524eca44b
4 changed files with 32 additions and 2 deletions

View File

@@ -93,6 +93,11 @@ namespace Content.Server.GameObjects
{
return true;
}
bool IActionBlocker.CanChangeDirection()
{
return true;
}
}
/// <summary>
@@ -169,6 +174,11 @@ namespace Content.Server.GameObjects
{
return false;
}
bool IActionBlocker.CanChangeDirection()
{
return true;
}
}
/// <summary>
@@ -255,5 +265,10 @@ namespace Content.Server.GameObjects
{
return false;
}
bool IActionBlocker.CanChangeDirection()
{
return false;
}
}
}

View File

@@ -151,6 +151,7 @@ namespace Content.Server.GameObjects.Components.Mobs
public bool CanEquip() => (!Stunned);
public bool CanUnequip() => (!Stunned);
public bool CanChangeDirection() => true;
#endregion
}
}