mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 04:23:47 +00:00
refactor(Core/Creature): More functions capitalized (#10012)
* GetLeader * IsFormed * build
This commit is contained in:
@@ -993,12 +993,12 @@ void Creature::Motion_Initialize()
|
||||
{
|
||||
if (!m_formation)
|
||||
GetMotionMaster()->Initialize();
|
||||
else if (m_formation->getLeader() == this)
|
||||
else if (m_formation->GetLeader() == this)
|
||||
{
|
||||
m_formation->FormationReset(false, true);
|
||||
GetMotionMaster()->Initialize();
|
||||
}
|
||||
else if (m_formation->isFormed())
|
||||
else if (m_formation->IsFormed())
|
||||
GetMotionMaster()->MoveIdle(); //wait the order of leader
|
||||
else
|
||||
GetMotionMaster()->Initialize();
|
||||
@@ -1849,7 +1849,7 @@ void Creature::setDeathState(DeathState s, bool despawn)
|
||||
}
|
||||
|
||||
//Dismiss group if is leader
|
||||
if (m_formation && m_formation->getLeader() == this)
|
||||
if (m_formation && m_formation->GetLeader() == this)
|
||||
m_formation->FormationReset(true, false);
|
||||
|
||||
bool needsFalling = !despawn && (IsFlying() || IsHovering()) && !IsUnderWater();
|
||||
|
||||
Reference in New Issue
Block a user