f5f0dd91e00e826eab3e614be1b3efa495fe0413
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>
Description
No description provided
53 MiB
Languages
C#
52.7%
HTML
24.9%
GDScript
21.2%
CSS
0.8%
Python
0.3%
Other
0.1%