From cf5aeaea065cf0b497b4b2489945e80a793c8b09 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Fri, 6 Aug 2021 00:21:41 +0200 Subject: [PATCH] fix(Core/Totems): Totems should not fall to the depth in water. (#7179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Core/Totems): Totems should not fall to the depth in water. Fixed #6562 * chore(Core/Totem.cpp): add brackets Co-authored-by: Stefano Borzì --- src/server/game/Entities/Totem/Totem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/game/Entities/Totem/Totem.cpp b/src/server/game/Entities/Totem/Totem.cpp index ec0df6e25..70d409925 100644 --- a/src/server/game/Entities/Totem/Totem.cpp +++ b/src/server/game/Entities/Totem/Totem.cpp @@ -88,7 +88,10 @@ void Totem::InitSummon() GetOwner()->CastSpell(this, 6277, true); } - this->GetMotionMaster()->MoveFall(); + if (!IsInWater()) + { + GetMotionMaster()->MoveFall(); + } } void Totem::UnSummon(uint32 msTime)