mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 23:38:00 +00:00
feat(Core/Movement): port smooth waypoint movement from Cataclysm Preservation Project (#25106)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: Ovahlord <dreadkiller@gmx.de> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Kitzunu <Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -388,6 +388,33 @@ void Creature::SearchFormation()
|
||||
}
|
||||
}
|
||||
|
||||
bool Creature::IsFormationLeader() const
|
||||
{
|
||||
if (!m_formation)
|
||||
return false;
|
||||
|
||||
return m_formation->GetLeader() == this;
|
||||
}
|
||||
|
||||
void Creature::SignalFormationMovement()
|
||||
{
|
||||
if (!m_formation)
|
||||
return;
|
||||
|
||||
if (!m_formation->GetLeader() || m_formation->GetLeader() != this)
|
||||
return;
|
||||
|
||||
m_formation->LeaderStartedMoving();
|
||||
}
|
||||
|
||||
bool Creature::IsFormationLeaderMoveAllowed() const
|
||||
{
|
||||
if (!m_formation)
|
||||
return true;
|
||||
|
||||
return m_formation->CanLeaderStartMoving();
|
||||
}
|
||||
|
||||
void Creature::RemoveCorpse(bool setSpawnTime, bool skipVisibility)
|
||||
{
|
||||
if (getDeathState() != DeathState::Corpse)
|
||||
|
||||
Reference in New Issue
Block a user