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:
Ovahlord committed 2018-03-30 00:29:13 +02:00
1 parent 2efc91a839
commit 261fbb29e8
2 files changed
+3 -10

No files matched your search

+2 -1
View File
@@ -14152,7 +14152,8 @@ bool Unit::SetSwim(bool enable)
if (enable)
{
AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
SetDisableGravity(true);
if (IsUnderWater())
SetDisableGravity(true);
}
else
{