[priority: 4] calcDamage called with empty skills — all skill-based damage bonuses ignored in combat #72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: 4 — High
File:
src/lib/game/stores/combat-actions.ts, lines 57-59Description:
calcDamageis called with an empty skills object:calcDamageapplies skill bonuses fromcombatTrain,arcaneFury,elementalMastery,guardianBane, andprecision. Butskillsis always{}, so all skill-based damage bonuses are completely non-functional during combat.Fix: Pass actual skill state to
processCombatTickand forward it tocalcDamage.Starting work on Issue 72: calcDamage called with empty skills — all skill-based damage bonuses ignored in combat. This is part of the skill→discipline migration gap. Will wire discipline effects into calcDamage and other utility functions that currently accept empty skill objects.
Fixed: Updated
calcDamageincombat-utils.tsto accept an optionalDisciplineBonusesparameter. Discipline bonuses fromspell-casting(baseDamageBonus) andvoid-manipulation(baseDamageMultiplier) are now applied to damage calculations. Updatedcombat-actions.tsto compute discipline effects once per tick and pass them to bothcalcDamagecalls.