mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-23 00:00:00 +08:00
fixed # 补全梦三怪物、卡牌
fixed # 修复天书乱斗中,过关技能不会重置次数的问题
This commit is contained in:
@@ -8,10 +8,11 @@ export const FLYCONID_MOVES = Object.freeze({
|
||||
export function eligibleFlyconidMoves(state = {}) {
|
||||
const upcoming = (state.turnsTaken || 0) + 1;
|
||||
const lastUsed = state.lastUsed || {};
|
||||
// 行动间隔达到冷却值即恢复;额外等待一轮会使三招同时不可用。
|
||||
const moves = [];
|
||||
if (state.lastMove !== "smash") moves.push(FLYCONID_MOVES.smash);
|
||||
if (lastUsed.frail == null || upcoming - lastUsed.frail > 2) moves.push(FLYCONID_MOVES.frail);
|
||||
if (upcoming >= 2 && (lastUsed.vulnerable == null || upcoming - lastUsed.vulnerable > 3)) moves.push(FLYCONID_MOVES.vulnerable);
|
||||
if (lastUsed.frail == null || upcoming - lastUsed.frail >= 2) moves.push(FLYCONID_MOVES.frail);
|
||||
if (upcoming >= 2 && (lastUsed.vulnerable == null || upcoming - lastUsed.vulnerable >= 3)) moves.push(FLYCONID_MOVES.vulnerable);
|
||||
return moves;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user