feat(system-gaps): 복합 카드(피해+방어)·런 종료 후 메뉴 복귀(EndRun)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 09:01:42 +09:00
parent 1de8fac893
commit 8ff50b428d
3 changed files with 23 additions and 5 deletions

View File

@@ -120,7 +120,8 @@ export function simulateCombat(data, rng, stats) {
const r = applyDamage(target.hp, target.block, c.damage || 0);
target.hp = r.hp; target.block = r.block;
if (target.hp <= 0) target.alive = false;
if (stats) stats[id] = bump(stats[id], c.cost, c.damage || 0, 0);
if (c.block) pBlock += c.block;
if (stats) stats[id] = bump(stats[id], c.cost, c.damage || 0, c.block || 0);
} else {
pBlock += c.block || 0;
if (stats) stats[id] = bump(stats[id], c.cost, 0, c.block || 0);