mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11897] Remove redundant call of ResetInstance - Raids cannot be reset at all
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
ceeafd567c
commit
2836e704a8
2 changed files with 3 additions and 9 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue