When the Knight attack animation connects with the Player hurtbox, the Player should lose health. Damage should apply once per attack animation and trigger a brief hit reaction.
Context
We already have animation lists and a collision boolean. We need a reliable combat flow that ties attack frames to an active hitbox, detects overlap with the opponent, then applies damage with cooldown and invulnerability frames.
Acceptance criteria
Player health decreases by a fixed amount when a valid Knight attack lands
Only one damage event per Knight attack animation
Visual or log feedback confirms hits and health changes
No damage outside active attack frames
Unit or runtime test shows repeated attacks reduce health across multiple valid hits
When the Knight attack animation connects with the Player hurtbox, the Player should lose health. Damage should apply once per attack animation and trigger a brief hit reaction.
Context
We already have animation lists and a collision boolean. We need a reliable combat flow that ties attack frames to an active hitbox, detects overlap with the opponent, then applies damage with cooldown and invulnerability frames.
Acceptance criteria
Player health decreases by a fixed amount when a valid Knight attack lands
Only one damage event per Knight attack animation
Visual or log feedback confirms hits and health changes
No damage outside active attack frames
Unit or runtime test shows repeated attacks reduce health across multiple valid hits