mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-24 08:39:58 +08:00
fixed # 补全梦三怪物、卡牌
fixed # 修复天书乱斗中,过关技能不会重置次数的问题
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { _status } from "../../../../noname.js";
|
||||
import { canPayCard, isActiveCardUse } from "../battle/combat-rules.js";
|
||||
export const SLIMED_NAME = "mengsan_slimed_shuying";
|
||||
export function createSlimedData(id) {
|
||||
if (typeof id !== "string" || !id) throw new TypeError("黏液牌缺少ID");
|
||||
return { id, name: SLIMED_NAME, suit: "spade", number: 1, nature: null, affixes: ["exhaust"], upgrade: 0 };
|
||||
}
|
||||
export const slimedDefinition = Object.freeze({
|
||||
type: "status", fullimage: true,
|
||||
image: "ext:术樱包/mengsan/assets/cards/mengsan_slimed_shuying.png",
|
||||
mengsanCost_shuying: 1, mengsanExhaust_shuying: true,
|
||||
enable(used, player, event) {
|
||||
return !isActiveCardUse(event || _status.event, player) || canPayCard(player, used);
|
||||
},
|
||||
notarget: true,
|
||||
async content(event, trigger, player) { await player.draw(1); },
|
||||
ai: { value: -1, useful: 0, order: 1, result: { player: 1 } },
|
||||
cardPrompt: () => "梦三:主动使用消耗1费用。抽1张牌。消耗:使用后退出此次战斗。",
|
||||
});
|
||||
Reference in New Issue
Block a user