Previously both units played "damaged" simultaneously after the attacker's
attack animation. Now when both units take damage in the same state update
(= counterattack), the full chain fires:
1. Mob 1 finishes Attack animation
2. Mob 2 plays Damaged (hit by Mob 1)
3. Mob 2 plays Attack (counterattack)
4. Mob 1 plays Damaged (hit by Mob 2) + Mob 2 returns to Idle
Implementation:
- _override_oneshot(iid, cb): replaces a pending animation_finished ONE_SHOT
callback without leaving stale signal connections
- _play_counter_attack(defender, attacker): plays defender "attack", then
triggers attacker "damaged" + defender "idle" via _override_oneshot
- _play_counter_chain(defender, attacker, delay): tween-delayed entry into the
chain; starts with defender "damaged" then hands off to _play_counter_attack
- _play_damage_animations: detects counterattack (attacker_iid AND another unit
both in damaged_iids), routes to _play_counter_chain; falls through to the
existing simple-damage path otherwise
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>