Holidays: keep the event's length when the client gives no duration; Noblegarden runs again

SetHolidayEventTime dropped any holiday without a duration for stage 1, so its dates were never used.
The Forever client's Noblegarden (Holidays 181) has a date every spring and no duration at all. The
client's duration still wins when there is one; when there is none, the game_event row's length is kept.

Event 28 owns the 192 Noblegarden objects but had no start, no end and no holiday, so it never ran.
2026_11_16_00 links it to holiday 181, stage 1, with the row's 2880 minute length.

The missing-duration case was reported by the Everlake core (GPL),
github.com/buildthehomelab/wow-trinitycore-everlake.
This commit is contained in:
Karrz1
2026-11-16 12:17:58 +00:00
parent 2829457380
commit 5b6ef0ec40
2 changed files with 24 additions and 3 deletions
@@ -0,0 +1,12 @@
-- Noblegarden on the client's own dates.
--
-- Event 28 owns the Noblegarden objects (192 gameobject spawns in game_event_gameobject, 2026_10_17_53) but came from
-- VMaNGOS with no start, no end and no holiday, so it never ran: GameEventMgr::CheckOneGameEvent needs start < now < end.
-- The Forever client carries the holiday as Holidays 181: a dated run every spring (2026-04-06, 2027-03-29, 2028-04-17 ... up
-- to 2030), but no duration for any stage. Since 2026_11_16 the server keeps the game_event row's length for such a holiday
-- (GameEventMgr::SetHolidayEventTime) instead of ignoring its dates, so linking the row is enough: start comes from the client's
-- next date, the length stays the row's 2880 minutes, and the next date is picked when a run ends.
-- start_time is only the fallback once the client's dates run out (after 2030); end_time matches the other yearly events.
-- With thanks to the Everlake core (GPL), whose report pointed at the missing-duration case.
UPDATE `game_event` SET `start_time` = '2026-04-06 00:00:00', `end_time` = '2037-12-31 23:59:59', `holiday` = 181, `holidayStage` = 1
WHERE `eventEntry` = 28;