Compose independent utility cards with classic Leader Skills
This commit is contained in:
1 parent
40a5e51229
commit
5a32c1ac85
23 files changed
+1845
-87
No files matched your search
@@ -59,6 +59,14 @@ export function validBattleSlotPair(
|
||||
);
|
||||
}
|
||||
|
||||
/** A Planetologist substitution suppresses only the selected weapon's native effect. */
|
||||
export function usesNativeBattleSpecial(
|
||||
plan: Readonly<{ weapon?: unknown; defense?: unknown; planetologistSpecial?: unknown }>,
|
||||
card: 'ecaz-reinforcements' | 'ecaz-harass-withdraw',
|
||||
): boolean {
|
||||
return plan.defense === card || (plan.weapon === card && plan.planetologistSpecial !== true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prescience asks for the selected category rather than physical slot
|
||||
* occupancy. Exact Ecaz battle specials answer null without revealing their
|
||||
|
||||
Reference in new issue
Block a user