Docs: Consolidate prompts 61-76 into summary and update context
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user