도적 다음 스킬 반복 효과 추가
This commit is contained in:
@@ -713,6 +713,28 @@ test("simulateCombat: nextSkillCostZero makes the next skill free", () => {
|
||||
assert.equal(r.playerHpRemaining, 80);
|
||||
});
|
||||
|
||||
test("simulateCombat: nextSkillRepeatCount repeats the next skill effect", () => {
|
||||
const shared = {
|
||||
cards: {
|
||||
Burst: { name: "Burst", cost: 1, kind: "Skill", draw: 1, block: 5, nextSkillRepeatCount: 1 },
|
||||
Guard: { name: "Guard", cost: 2, kind: "Skill", block: 8 },
|
||||
},
|
||||
starterDeck: ["Burst", "Guard"],
|
||||
monsters: [{ name: "Dummy", maxHp: 9999, intents: [{ kind: "Attack", value: 15 }] }],
|
||||
};
|
||||
const withBurst = simulateCombat(shared, () => 0.999999);
|
||||
const withoutBurst = simulateCombat({
|
||||
...shared,
|
||||
cards: {
|
||||
Burst: { name: "Burst", cost: 1, kind: "Skill", draw: 1, block: 5 },
|
||||
Guard: shared.cards.Guard,
|
||||
},
|
||||
}, () => 0.999999);
|
||||
assert.equal(withBurst.draw, true);
|
||||
assert.equal(withBurst.playerHpRemaining, 80);
|
||||
assert.ok(withBurst.playerHpRemaining > withoutBurst.playerHpRemaining);
|
||||
});
|
||||
|
||||
test("chooseAction: skillCostReductionThisTurn allows discounted skills", () => {
|
||||
const cards = {
|
||||
Guard: { name: "Guard", cost: 2, kind: "Skill", block: 8 },
|
||||
|
||||
Reference in New Issue
Block a user