fix: match surprise attack boundaries

This commit is contained in:
2026-07-26 09:36:44 +00:00
parent c364552960
commit d4d373c4bd
4 changed files with 336 additions and 10 deletions
@@ -26,10 +26,7 @@ import { z } from 'zod';
import { parseArgsWithSchema } from '../parseArgs.js';
const ARGS_SCHEMA = z.object({
destNationId: z.preprocess(
(value) => (typeof value === 'number' ? Math.floor(value) : value),
z.number().int().positive()
),
destNationId: z.number().int().positive(),
});
export type RaidArgs = z.infer<typeof ARGS_SCHEMA>;