mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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;
|
_player->m_timeSyncClient = clientTicks;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleResetInstancesOpcode( WorldPacket & /*recv_data*/ )
|
void WorldSession::HandleResetInstancesOpcode(WorldPacket& /*recv_data*/)
|
||||||
{
|
{
|
||||||
DEBUG_LOG("WORLD: CMSG_RESET_INSTANCES");
|
DEBUG_LOG("WORLD: CMSG_RESET_INSTANCES");
|
||||||
|
|
||||||
if (Group *pGroup = _player->GetGroup())
|
if (Group* pGroup = _player->GetGroup())
|
||||||
{
|
{
|
||||||
if (pGroup->IsLeader(_player->GetObjectGuid()))
|
if (pGroup->IsLeader(_player->GetObjectGuid()))
|
||||||
{
|
|
||||||
pGroup->ResetInstances(INSTANCE_RESET_ALL, false, _player);
|
pGroup->ResetInstances(INSTANCE_RESET_ALL, false, _player);
|
||||||
pGroup->ResetInstances(INSTANCE_RESET_ALL, true,_player);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
_player->ResetInstances(INSTANCE_RESET_ALL, false);
|
_player->ResetInstances(INSTANCE_RESET_ALL, false);
|
||||||
_player->ResetInstances(INSTANCE_RESET_ALL, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleSetDungeonDifficultyOpcode( WorldPacket & recv_data )
|
void WorldSession::HandleSetDungeonDifficultyOpcode( WorldPacket & recv_data )
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11896"
|
#define REVISION_NR "11897"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue