Support named ordinary cards in Advanced Voice
This commit is contained in:
1 parent
b00d720e40
commit
a244aeb5f8
20 files changed
+514
-41
No files matched your search
+1
-1
@@ -790,7 +790,7 @@ function plans(g: GameView): Action[] {
|
||||
const voice = b.voice?.target === me.id ? b.voice : null;
|
||||
const mayOmitLeader =
|
||||
!availableLeaders.length &&
|
||||
(!heroes.length || (voice?.kind === 'hero' && !voice.must));
|
||||
!heroes.some(hero => !(voice && !voice.must && playedVoiceMatch(hero, 'leader', voice.kind)));
|
||||
const leaders = [
|
||||
...(mayOmitLeader ? [null] : []),
|
||||
...availableLeaders.map((l) => l.id),
|
||||
|
||||
Reference in new issue
Block a user