Core/Objects: replaced another IsFlying check with CanFly to make sure that hovering creatures will get their ground height returned properly
*also fixed a small typo in path generator
This commit is contained in:
1 parent
7847eb66e0
commit
ab95871811
2 files changed
+2
-2
No files matched your search
@@ -2620,7 +2620,7 @@ void WorldObject::MovePositionToFirstCollision(Position &pos, float dist, float
|
||||
if (Unit const* unit = ToUnit())
|
||||
{
|
||||
// flying, ignore.
|
||||
if (unit->IsFlying())
|
||||
if (unit->CanFly())
|
||||
return;
|
||||
|
||||
// fall back to gridHeight if any
|
||||
|
||||
Reference in new issue
Block a user