Docs: Consolidate prompts 61-76 into summary and update context

This commit is contained in:
2025-12-07 22:06:51 +09:00
parent 59ebb7cd98
commit 135bf26332
20 changed files with 155 additions and 490 deletions
+7 -8
View File
@@ -369,15 +369,13 @@ class BattleProvider with ChangeNotifier {
handleImpact(event); // Process impact via handleImpact for safety
}
// Now check for enemy death (if applicable from bleed, or previous impacts)
if (enemy.isDead) {
// Check enemy death after player's action
_onVictory();
return;
}
// Now check for enemy death (if applicable from bleed, or previous impacts)
_endPlayerTurn();
}
// Removed redundant `if (enemy.isDead)` check as it's handled in `_processAttackImpact`
_endPlayerTurn();
}
void _endPlayerTurn() {
// Update durations at end of turn
@@ -630,6 +628,7 @@ class BattleProvider with ChangeNotifier {
stage++;
showRewardPopup = false;
rewardOptions.clear(); // Clear options to prevent flash on next victory
_prepareNextStage();