diff --git a/admin-web/index.html b/admin-web/index.html index 6d39660..60ef9ac 100644 --- a/admin-web/index.html +++ b/admin-web/index.html @@ -1177,8 +1177,13 @@ - + + + + + +

Roadside / adventure controls require the hero alive, not in combat; adventure start needs StateWalking on a road.

diff --git a/backend/internal/handler/admin.go b/backend/internal/handler/admin.go index ffddedc..3ec70a0 100644 --- a/backend/internal/handler/admin.go +++ b/backend/internal/handler/admin.go @@ -140,7 +140,7 @@ func (h *AdminHandler) writeAdminHeroDetail(w http.ResponseWriter, hero *model.H out.Hero = *hm.Hero out.Hero.RefreshDerivedCombatStats(now) out.TownPause = hm.Hero.TownPause - out.AdminLiveMovement = buildAdminLiveMovementSnap(hm, now) + out.AdminLiveMovement = buildAdminLiveMovementSnap(hm) } writeJSON(w, http.StatusOK, out) } @@ -2124,7 +2124,6 @@ func resetHeroToLevel1(hero *model.Hero) { hero.State = model.StateWalking hero.Buffs = nil hero.Debuffs = nil - hero.BuffCharges = nil - hero.BuffFreeChargesRemaining = model.FreeBuffActivationsPerPeriodRuntime() - hero.BuffQuotaPeriodEnd = nil + now := time.Now() + hero.ResetBuffCharges(nil, now) }