Fix: Add buffer delay to Enemy Turn for animation sync

This commit is contained in:
2025-12-07 19:37:17 +09:00
parent 1720725826
commit 3030c09d55
2 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -495,7 +495,8 @@ class BattleProvider with ChangeNotifier {
if (intent.risk == RiskLevel.safe) delay = GameConfig.animDelaySafe;
if (intent.risk == RiskLevel.risky) delay = GameConfig.animDelayRisky;
await Future.delayed(Duration(milliseconds: delay));
// Add small buffer to ensure visual impact happens before text (300ms)
await Future.delayed(Duration(milliseconds: delay + 300));
int incomingDamage = intent.finalValue;