[11897] Remove redundant call of ResetInstance - Raids cannot be reset at all

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
cyberium 2012-01-31 19:43:31 +01:00 committed by Schmoozerd
parent ceeafd567c
commit 2836e704a8
2 changed files with 3 additions and 9 deletions

View file

@ -1394,23 +1394,17 @@ void WorldSession::HandleTimeSyncResp( WorldPacket & recv_data )
_player->m_timeSyncClient = clientTicks;
}
void WorldSession::HandleResetInstancesOpcode( WorldPacket & /*recv_data*/ )
void WorldSession::HandleResetInstancesOpcode(WorldPacket& /*recv_data*/)
{
DEBUG_LOG("WORLD: CMSG_RESET_INSTANCES");
if (Group *pGroup = _player->GetGroup())
if (Group* pGroup = _player->GetGroup())
{
if (pGroup->IsLeader(_player->GetObjectGuid()))
{
pGroup->ResetInstances(INSTANCE_RESET_ALL, false, _player);
pGroup->ResetInstances(INSTANCE_RESET_ALL, true,_player);
}
}
else
{
_player->ResetInstances(INSTANCE_RESET_ALL, false);
_player->ResetInstances(INSTANCE_RESET_ALL, true);
}
}
void WorldSession::HandleSetDungeonDifficultyOpcode( WorldPacket & recv_data )

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11896"
#define REVISION_NR "11897"
#endif // __REVISION_NR_H__