tests: cover quest framing and restart cooldowns
Some checks failed
build / Linux asan (push) Has been cancelled
build / Linux release (push) Has been cancelled
build / FreeBSD build (push) Has been cancelled

This commit is contained in:
server
2026-04-14 14:38:21 +02:00
parent cf6deb1895
commit 44f9d92e8c
8 changed files with 185 additions and 58 deletions

View File

@@ -40,6 +40,7 @@
#include "xmas_event.h"
#include "banword.h"
#include "target.h"
#include "request_cooldown.h"
#include "wedding.h"
#include "mob_manager.h"
#include "mining.h"
@@ -5700,7 +5701,7 @@ void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
int iPulse = thecore_pulse();
const int last_safebox_load_time = GetSafeboxLoadTime();
if (last_safebox_load_time > 0 && iPulse - last_safebox_load_time < PASSES_PER_SEC(10))
if (HasRecentRequestCooldown(last_safebox_load_time, iPulse, PASSES_PER_SEC(10)))
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<창고> 창고를 닫은지 10초 안에는 열 수 없습니다."));
return;