Core/Movement: Allow using run when moving randomly

Port From (https://github.com/TrinityCore/TrinityCore/commit/a57ca5cea2d13bc5d5ddee11e7b8100c7afd68e1)
This commit is contained in:
hondacrx
2021-11-29 14:21:33 -05:00
parent f218b72620
commit 8fbecac008
6 changed files with 59 additions and 22 deletions
@@ -353,6 +353,7 @@ namespace Game.Entities
public bool Swim;
public bool Rooted;
public CreatureChaseMovementType Chase;
public CreatureRandomMovementType Random;
public CreatureMovementData()
{
@@ -368,10 +369,11 @@ namespace Game.Entities
public bool IsRooted() { return Rooted; }
public CreatureChaseMovementType GetChase() { return Chase; }
public CreatureRandomMovementType GetRandom() { return Random; }
public override string ToString()
{
return $"Ground: {Ground}, Swim: {Swim}, Flight: {Flight} {(Rooted ? ", Rooted" : "")}, Chase: {Chase}";
return $"Ground: {Ground}, Swim: {Swim}, Flight: {Flight} {(Rooted ? ", Rooted" : "")}, Chase: {Chase}, Random: {Random}";
}
}