Core/Calendar
* Added sending SMSG_CALENDAR_RAID_LOCKOUT_REMOVED when instance save is removed * Refactored sending SMSG_CALENDAR_RAID_LOCKOUT_ADDED/REMOVED into separate method
This commit is contained in:
@@ -2519,14 +2519,7 @@ void InstanceMap::PermBindAllPlayers(Player* source)
|
||||
data << uint32(0);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
|
||||
time_t currTime = time(NULL);
|
||||
data.Initialize(SMSG_CALENDAR_RAID_LOCKOUT_ADDED, 4 + 4 + 4 + 4 + 8);
|
||||
data << uint32(secsToTimeBitFields(currTime));
|
||||
data << uint32(save->GetMapId());
|
||||
data << uint32(save->GetDifficulty());
|
||||
data << uint32(save->GetResetTime() - currTime);
|
||||
data << uint64(save->GetInstanceId());
|
||||
player->GetSession()->SendPacket(&data);
|
||||
player->GetSession()->SendCalendarRaidLockout(save, true);
|
||||
}
|
||||
|
||||
// if the leader is not in the instance the group will not get a perm bind
|
||||
|
||||
Reference in New Issue
Block a user