Core/Creatures: tempoarily disable creature replacements until it has been ported to a movement generator
This commit is contained in:
1 parent
09c6ed8d1e
commit
4b6c4033c9
3 files changed
+4
-4
No files matched your search
@@ -500,8 +500,8 @@ void Unit::MoveAdvanceTo(Unit* target)
|
||||
Movement::MoveSplineInit init(this);
|
||||
init.MoveTo(x, y, z, true, false);
|
||||
|
||||
// Beasts move backwards instead of turning arround
|
||||
if (ToCreature() && ToCreature()->GetCreatureTemplate()->type == CREATURE_TYPE_BEAST)
|
||||
// Creatures except humanoids move backwards instead of turning arround
|
||||
if (ToCreature() && ToCreature()->GetCreatureTemplate()->type != CREATURE_TYPE_HUMANOID)
|
||||
init.SetOrientationFixed(true);
|
||||
|
||||
init.Launch();
|
||||
|
||||
Reference in new issue
Block a user