aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r--src/game/Creature.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h
index 5dd9dc9afdc..bce132f0cd0 100644
--- a/src/game/Creature.h
+++ b/src/game/Creature.h
@@ -651,8 +651,8 @@ class TRINITY_DLL_SPEC Creature : public Unit
void UpdateWaypointID(uint32 wpID){m_waypointID = wpID;}
void SearchFormation();
- bool IsFormationLeader() {return (GetDBTableGUIDLow() && GetDBTableGUIDLow() == m_formationID);}
- uint32 GetFormationID(){return m_formationID;}
+ CreatureGroup *GetFormation() {return m_formation;}
+ void SetFormation(CreatureGroup *formation) {m_formation = formation;}
Unit *SelectVictim();
void SetDeadByDefault (bool death_state) {m_isDeadByDefault = death_state;}
@@ -711,7 +711,7 @@ class TRINITY_DLL_SPEC Creature : public Unit
uint32 m_path_id;
//Formation var
- uint32 m_formationID;
+ CreatureGroup *m_formation;
GridReference<Creature> m_gridRef;
CreatureInfo const* m_creatureInfo; // in heroic mode can different from ObjMgr::GetCreatureTemplate(GetEntry())