mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
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:
@@ -88,7 +88,10 @@ void Totem::InitSummon()
|
||||
GetOwner()->CastSpell(this, 6277, true);
|
||||
}
|
||||
|
||||
this->GetMotionMaster()->MoveFall();
|
||||
if (!IsInWater())
|
||||
{
|
||||
GetMotionMaster()->MoveFall();
|
||||
}
|
||||
}
|
||||
|
||||
void Totem::UnSummon(uint32 msTime)
|
||||
|
||||
Reference in New Issue
Block a user