fix: split multi-type golem core upkeep across all mana types (issue #315)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s

This commit is contained in:
2026-06-08 13:29:30 +02:00
parent 0894ee8c55
commit b4b499c1b1
9 changed files with 294 additions and 26 deletions
@@ -1,10 +1,11 @@
// ─── Golem Combat Actions Regression Tests (Issue #313) ────────────────────────
// Tests the 5 fixes applied to processGolemAttacks:
// ─── Golem Combat Actions Regression Tests ────────────────────────────────────
// Issue #313: Tests the 5 fixes applied to processGolemAttacks:
// 1. Spell damage uses actual SPELLS_DEF[spellId].dmg * frame.magicAffinity
// 2. Spell mana cost uses actual SPELLS_DEF[spellId].cost.amount
// 3. Elemental matchup applied to basic attacks
// 4. Enchantment effects applied to basic attacks
// 5. Armor pierce bypasses armor fraction instead of multiplying damage
//
import { describe, it, expect } from 'vitest';
import {
@@ -344,4 +345,3 @@ describe('processGolemAttacks - armor pierce (fix #5)', () => {
});
});