mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 20:47:15 +00:00
[Instance] Clear Respawn Timers on Creation (#4801)
* [DZ] Clear Respawn Timers on Creation
* Revert "[DZ] Clear Respawn Timers on Creation"
This reverts commit ae18b77e83.
* Clear respawn times on instance creation
This commit is contained in:
@@ -77,6 +77,11 @@ public:
|
||||
|
||||
return ((r.start + r.duration) - time_seconds);
|
||||
}
|
||||
|
||||
static void ClearInstanceTimers(Database &db, int32_t id)
|
||||
{
|
||||
RespawnTimesRepository::DeleteWhere(db, fmt::format("`instance_id` = {}", id));
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EQEMU_RESPAWN_TIMES_REPOSITORY_H
|
||||
|
||||
Reference in New Issue
Block a user