mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
Fix raid groups load from DB and save to DB.
Fixes issue #299. - In table GROUPS, since rev 7841, isRaid is used to store the groupType. The DB was not updated. this is now fixed. - Fix isRaid set to 1 when group converted to raid (shall be the groupType). - Fix isRaidGroup check as groupType is now a set of flags. - Fix dungeon/raid check when difficulty change. --HG-- branch : trunk
This commit is contained in:
@@ -1527,7 +1527,7 @@ void WorldSession::HandleSetDungeonDifficultyOpcode(WorldPacket & recv_data)
|
||||
return;
|
||||
|
||||
map = pGroupGuy->GetMap();
|
||||
if (map && map->IsRaidOrHeroicDungeon())
|
||||
if (map && map->IsNonRaidDungeon())
|
||||
{
|
||||
sLog.outError("WorldSession::HandleSetDungeonDifficultyOpcode: player %d tried to reset the instance while inside!", _player->GetGUIDLow());
|
||||
return;
|
||||
@@ -1588,9 +1588,9 @@ void WorldSession::HandleSetRaidDifficultyOpcode(WorldPacket & recv_data)
|
||||
return;
|
||||
|
||||
map = pGroupGuy->GetMap();
|
||||
if (map && map->IsRaidOrHeroicDungeon())
|
||||
if (map && map->IsRaid())
|
||||
{
|
||||
sLog.outError("WorldSession::HandleSetDungeonDifficultyOpcode: player %d tried to reset the instance while inside!", _player->GetGUIDLow());
|
||||
sLog.outError("WorldSession::HandleSetRaidDifficultyOpcode: player %d tried to reset the instance while inside!", _player->GetGUIDLow());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user