mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Maps: Replaced spawnmask with difficulty list
This commit is contained in:
@@ -92,20 +92,23 @@ void WorldSession::HandleCalendarGetCalendar(WorldPackets::Calendar::CalendarGet
|
||||
|
||||
for (uint8 i = 0; i < MAX_DIFFICULTY; ++i)
|
||||
{
|
||||
Player::BoundInstancesMap boundInstances = _player->GetBoundInstances(Difficulty(i));
|
||||
for (auto const& boundInstance : boundInstances)
|
||||
auto boundInstances = _player->GetBoundInstances(Difficulty(i));
|
||||
if (boundInstances != _player->m_boundInstances.end())
|
||||
{
|
||||
if (boundInstance.second.perm)
|
||||
for (auto const& boundInstance : boundInstances->second)
|
||||
{
|
||||
WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo lockoutInfo;
|
||||
if (boundInstance.second.perm)
|
||||
{
|
||||
WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo lockoutInfo;
|
||||
|
||||
InstanceSave const* save = boundInstance.second.save;
|
||||
lockoutInfo.MapID = save->GetMapId();
|
||||
lockoutInfo.DifficultyID = save->GetDifficultyID();
|
||||
lockoutInfo.ExpireTime = save->GetResetTime() - currTime;
|
||||
lockoutInfo.InstanceID = save->GetInstanceId(); // instance save id as unique instance copy id
|
||||
InstanceSave const* save = boundInstance.second.save;
|
||||
lockoutInfo.MapID = save->GetMapId();
|
||||
lockoutInfo.DifficultyID = save->GetDifficultyID();
|
||||
lockoutInfo.ExpireTime = save->GetResetTime() - currTime;
|
||||
lockoutInfo.InstanceID = save->GetInstanceId(); // instance save id as unique instance copy id
|
||||
|
||||
packet.RaidLockouts.push_back(lockoutInfo);
|
||||
packet.RaidLockouts.push_back(lockoutInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user