Core/Movement: Allow using walk when chasing v2

Port From (https://github.com/TrinityCore/TrinityCore/commit/956158d299b3264f883f49ac647154179182fbea)
This commit is contained in:
hondacrx
2021-11-29 13:29:51 -05:00
parent a55a7b9d40
commit 9cdccb9a08
7 changed files with 72 additions and 28 deletions
@@ -352,6 +352,7 @@ namespace Game.Entities
public CreatureFlightMovementType Flight;
public bool Swim;
public bool Rooted;
public CreatureChaseMovementType Chase;
public CreatureMovementData()
{
@@ -366,9 +367,11 @@ namespace Game.Entities
public bool IsFlightAllowed() { return Flight != CreatureFlightMovementType.None; }
public bool IsRooted() { return Rooted; }
public CreatureChaseMovementType GetChase() { return Chase; }
public override string ToString()
{
return $"Ground: {Ground}, Swim: {Swim}, Flight: {Flight} {(Rooted ? ", Rooted" : "")}";
return $"Ground: {Ground}, Swim: {Swim}, Flight: {Flight} {(Rooted ? ", Rooted" : "")}, Chase: {Chase}";
}
}