From e8866340ce2cb717486c8def489ddc9d3046a0cc Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 6 Apr 2009 13:27:42 -0500 Subject: *CreatureGroups fixed and improoved. By TrullyONE - Multimap support for instances added. - Removed redundant group checks. - New movement rules (bool group formed/dismissed added). - uint32 Creature::GroupID replaced with CreatureGroup pointer. --HG-- branch : trunk --- src/game/Level2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Level2.cpp') diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index d1f4c864f24..823c8b8e9ee 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -4569,9 +4569,9 @@ bool ChatHandler::HandleNpcAddFormationCommand(const char* args) } uint32 lowguid = pCreature->GetDBTableGUIDLow(); - if(pCreature->GetFormationID()) + if(pCreature->GetFormation()) { - PSendSysMessage("Selected creature is already member of group %u", pCreature->GetFormationID()); + PSendSysMessage("Selected creature is already member of group %u", pCreature->GetFormation()->GetId()); return false; } -- cgit v1.2.3