Support named ordinary cards in Advanced Voice

This commit is contained in:
Quintine committed 2026-10-28 00:08:16 +11:00
1 parent b00d720e40
commit a244aeb5f8
20 files changed
+514 -41

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { FACTIONS, type FactionId } from './catalog';
import { VOICE_KINDS } from './battle-cards';
import { voiceChoices } from './battle-cards';
import { quoteEcazOccupyBattle, type EcazOccupyBattleProfile } from './ecaz-occupy-battle';
import { validateNexusBorrowedVoice, type NexusBorrowedVoiceFrame } from './nexus-borrowed-voice';
@@ -332,7 +332,7 @@ function calculate(
record(b.voice) &&
b.voice.target === opponent &&
typeof b.voice.kind === 'string' &&
VOICE_KINDS.includes(b.voice.kind) &&
voiceChoices(input.advanced).includes(b.voice.kind) &&
typeof b.voice.must === 'boolean',
'The declared Voice response is malformed or targets the wrong opponent.',
);