小猫戏法优化

This commit is contained in:
hahwu 2025-05-16 11:08:44 +08:00
parent d066b8b979
commit 09879e9a4a

View File

@ -158,7 +158,9 @@ func (l *LimitedTimeEventMod) Trigger(Lv int) (int, []int, []int) {
// 增加限时事件
func (l *LimitedTimeEventMod) AddEvent(EventId, Duration int) int64 {
if v, ok := l.EventList[EventId]; ok {
v, ok := l.EventList[EventId]
if ok && v.StartT+v.Remian > GoUtil.Now() {
// 事件未过期
v.Remian += int64(Duration)
addEventInfo(v, EventId, Duration)
} else {