Core/Misc: Defined a few fields in Map.dbc and rewritten InstanceMap::GetMaxPlayers to match what the client does to determine max players
This commit is contained in:
1 parent
7630b3c627
commit
b949d0b982
5 files changed
+18
-18
No files matched your search
@@ -22798,7 +22798,7 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
||||
// SMSG_INSTANCE_DIFFICULTY
|
||||
data.Initialize(SMSG_INSTANCE_DIFFICULTY, 4+4);
|
||||
data << uint32(GetMap()->GetDifficulty());
|
||||
data << uint32(GetMap()->IsRaid() && GetMap()->IsHeroic()); // Raid dynamic difficulty
|
||||
data << uint32(GetMap()->GetEntry()->IsDynamicDifficultyMap() && GetMap()->IsHeroic()); // Raid dynamic difficulty
|
||||
GetSession()->SendPacket(&data);
|
||||
|
||||
SendInitialSpells();
|
||||
|
||||
Reference in new issue
Block a user