Function test_swing

Source
pub fn test_swing(ctx: &CastAbilityCtx<'_>) -> Result<Vec<OverlordEvent>>
Expand description

A real swing for the test config: runs mechanics::fight::attack with a fixed power and a forced non-crit.

Every other fixture ability emits a flat Damage event and so never touches the damage primitives. That left the whole “armed for the next attack → spent by that attack” half of the laws and stones untested — the arms were only ever observed being set. ThisAttackDamageBonus shipped broken through exactly that gap.

The crit roll is forced off and the power is a constant so two runs of the same test differ only by what the test changed.