mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Core/Unit): Fix CanSwim method not accurate for players (#17320)
This commit is contained in:
@@ -20224,7 +20224,7 @@ bool Unit::CanSwim() const
|
||||
// Mirror client behavior, if this method returns false then client will not use swimming animation and for players will apply gravity as if there was no water
|
||||
if (HasUnitFlag(UNIT_FLAG_CANNOT_SWIM))
|
||||
return false;
|
||||
if (HasUnitFlag(UNIT_FLAG_POSSESSED)) // is player
|
||||
if (HasUnitFlag(UNIT_FLAG_POSSESSED) || HasUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED)) // is player
|
||||
return true;
|
||||
if (HasUnitFlag2(UNIT_FLAG2_UNUSED_6))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user