diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2024-03-01 00:15:14 +0100 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-03-01 00:15:14 +0100 |
| commit | 4e8e3d8fb8694762668c3d5bc064de006aca5a1a (patch) | |
| tree | 4a723948c4c800c80fb7f3b2d76228192d8db5b2 /src | |
| parent | 34308dd6decd7011ba7ff1196db49b961577c608 (diff) | |
Core/Creature: corrected swimming toggle behavior for amphibious creatures
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 981eebcd810..75512b14b3a 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -2920,7 +2920,7 @@ void Creature::UpdateMovementCapabilities() RemoveUnitMovementFlag(MOVEMENTFLAG_FALLING); // Some Amphibious creatures toggle swimming while engaged - if (IsAmphibious() && !HasUnitFlag(UNIT_FLAG_CANT_SWIM) && !HasUnitFlag(UNIT_FLAG_CAN_SWIM)) + if (IsAmphibious() && !HasUnitFlag(UNIT_FLAG_CANT_SWIM) && !HasUnitFlag(UNIT_FLAG_CAN_SWIM) && IsEngaged()) if (!IsSwimPrevented() || (GetVictim() && !GetVictim()->IsOnOceanFloor())) SetUnitFlag(UNIT_FLAG_CAN_SWIM); |
