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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)