Core/Creatures: fixed a issue where creatures that are walking on puddles are considered swimming so their gravity got enabled.
This commit is contained in:
1 parent
2efc91a839
commit
261fbb29e8
2 files changed
+3
-10
No files matched your search
@@ -14152,7 +14152,8 @@ bool Unit::SetSwim(bool enable)
|
||||
if (enable)
|
||||
{
|
||||
AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
|
||||
SetDisableGravity(true);
|
||||
if (IsUnderWater())
|
||||
SetDisableGravity(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user