fix: allow external leader in green node efficiency
Publish GitHub Pages output / publish (push) Successful in 40s
Publish GitHub Pages output / publish (push) Successful in 40s
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
$: efficiencyFormationReady = efficiencyFormation.cardIds.length === 5
|
||||
&& efficiencyFormation.cardIds.every((id) => cardById.has(id))
|
||||
&& new Set(efficiencyFormation.cardIds.map((id) => cardById.get(id)?.characterId)).size === 5
|
||||
&& efficiencyFormation.cardIds.some((id) => cardById.get(id)?.characterId === efficiencyFormation.leaderCharacterId);
|
||||
&& leaderMembers.some((member) => member.characterId === efficiencyFormation.leaderCharacterId);
|
||||
$: dataView = $page.url.pathname.endsWith('/cards') ? 'cards' : $page.url.pathname.endsWith('/boards') ? 'boards' : 'home';
|
||||
onMount(() => {
|
||||
try {
|
||||
@@ -632,7 +632,7 @@
|
||||
|
||||
async function analyzeGreenNodeEfficiency() {
|
||||
if (!efficiencyFormationReady) {
|
||||
greenEfficiencyError = '서로 다른 멤버의 5성 카드 5장을 모두 선택해 주세요.';
|
||||
greenEfficiencyError = '서로 다른 멤버의 5성 카드 5장과 리더를 선택해 주세요.';
|
||||
return;
|
||||
}
|
||||
greenEfficiencyRunning = true;
|
||||
|
||||
Reference in New Issue
Block a user