Bugfix Combat Combos Not Initiating After a Replan

This commit is contained in:
Philip W 2023-03-23 04:20:53 +00:00
parent c242592540
commit 9b03571cb5
2 changed files with 4 additions and 5 deletions

View File

@ -470,10 +470,7 @@ void ATurnBaseCombatV2::EnemyTurn()
EnemyActionPlan = EnemyGOAPAgent->Plan(GetWorldState(), EnemyGOAPAgent->Goals);
ClearActionPlanWidget();
UpdateActionPlanWidget();
OnEnemyTurn.Broadcast(EnemyActor, PlayerActor);
TurnIndicatorTextBlock->SetText(FText::FromString("Player Turn"));
ToggleButtons();
return;
ActionEffects = EnemyActionPlan[0]->Effects;
}
if (ActionEffects.Contains("PlayerHealth"))
@ -507,6 +504,8 @@ void ATurnBaseCombatV2::EnemyTurn()
EnemyActionPlan.RemoveAt(0);
UpdateResourceBars();
ClearActionPlanWidget();
UpdateActionPlanWidget();
}
else
{