fix(Core/Totems): Totems should not fall to the depth in water. (#7179)

* 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ì <stefanoborzi32@gmail.com>
This commit is contained in:
UltraNix
2021-08-06 00:21:41 +02:00
committed by GitHub
parent 32650b61ee
commit cf5aeaea06

View File

@@ -88,7 +88,10 @@ void Totem::InitSummon()
GetOwner()->CastSpell(this, 6277, true);
}
this->GetMotionMaster()->MoveFall();
if (!IsInWater())
{
GetMotionMaster()->MoveFall();
}
}
void Totem::UnSummon(uint32 msTime)