From 93a8d4fb6337eac9058ac445b30e31328c4ccf74 Mon Sep 17 00:00:00 2001 From: acidmanifesto Date: Sun, 17 Apr 2022 13:24:15 -0400 Subject: [PATCH] fix (core) Remove not need operator || (#11425) Since the mysterous why things evade in shallow water root issue was finally determined because of our shallow water calculations was wrong that was corrected by pr https://github.com/azerothcore/azerothcore-wotlk/pull/11419 we can now remove this operator --- src/server/game/Entities/Creature/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 5ff6f1575..236bb6073 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -3035,7 +3035,7 @@ bool Creature::SetSwim(bool enable) */ bool Creature::CanSwim() const { - if (Unit::CanSwim() || (!Unit::CanSwim() && !CanFly())) + if (Unit::CanSwim()) return true; if (IsPet())