Treat a generic battle-power decline as passing borrowed Nexus Voice

This commit is contained in:
Quintine committed 2026-10-17 14:59:25 +11:00
1 parent 5961c75a29
commit 2dbbe8859e
4 files changed
+12

No files matched your search

+5
View File
@@ -33830,6 +33830,11 @@ function applyActionInner(
}
if (t === 'declineBattlePower') {
const b = g.battle;
if (b?.preparation?.kind === 'nexusVoice' && b.preparation.owner === id && b.nexusBorrowedVoice) {
// A generic decline is the same as continuing without the borrowed command.
playNexusBorrowedVoice(g, p, { type: 'nexusBorrowedVoice', event: b.nexusBorrowedVoice.event, use: false });
return g;
}
requireRule(
b?.preparation?.owner === id && !['nexusVoice', 'prescienceAnswer', 'nexusPrescienceAnswer'].includes(b.preparation.kind),
'You do not own this battle power decision.',