도적 불가침 기능 추가
This commit is contained in:
@@ -823,6 +823,19 @@ test("simulateCombat: cardPlayedRandomDamage hits a random enemy on card play",
|
||||
assert.equal(r.win, true);
|
||||
});
|
||||
|
||||
test("simulateCombat: intangible cards reduce incoming damage and persist across turns", () => {
|
||||
const data = {
|
||||
cards: {
|
||||
Wraith: { name: "WraithForm", cost: 3, kind: "Power", intangible: 2, endTurnDexLoss: 1, innate: true },
|
||||
Strike: { name: "Strike", cost: 1, kind: "Attack", damage: 1 },
|
||||
},
|
||||
starterDeck: ["Wraith", "Strike"],
|
||||
monsters: [{ name: "Dummy", maxHp: 1, intents: [{ kind: "Attack", value: 10 }] }],
|
||||
};
|
||||
const r = simulateCombat(data, () => 0.999999);
|
||||
assert.equal(r.win, true);
|
||||
});
|
||||
|
||||
test("simulateCombat: useAllEnergy skewer consumes all energy for damage", () => {
|
||||
const data = {
|
||||
cards: {
|
||||
|
||||
Reference in New Issue
Block a user