표창 카드 손패 생성 구현

This commit is contained in:
2026-06-16 02:19:22 +09:00
parent b23dc3868e
commit 62187db5dd
5 changed files with 178 additions and 51 deletions

View File

@@ -447,3 +447,17 @@ test("simulateCombat: thorns reflects unblocked attack damage", () => {
assert.equal(r.turns, 1);
assert.equal(r.playerHpRemaining, 79);
});
test("simulateCombat: addShiv creates shuriken cards in hand", () => {
const data = {
cards: {
MakeShiv: { name: "MakeShiv", cost: 0, kind: "Skill", addShiv: 2 },
Shiv: { name: "표창", cost: 0, kind: "Attack", damage: 4, exhaust: true },
},
starterDeck: ["MakeShiv"],
monsters: [{ name: "Dummy", maxHp: 8, intents: [{ kind: "Attack", value: 0 }] }],
};
const r = simulateCombat(data, () => 0.999999);
assert.equal(r.win, true);
assert.equal(r.turns, 1);
});