mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +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);
|
GetOwner()->CastSpell(this, 6277, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->GetMotionMaster()->MoveFall();
|
if (!IsInWater())
|
||||||
|
{
|
||||||
|
GetMotionMaster()->MoveFall();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Totem::UnSummon(uint32 msTime)
|
void Totem::UnSummon(uint32 msTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user