Bugfix Combat Combos Not Initiating After a Replan
This commit is contained in:
parent
c242592540
commit
9b03571cb5
BIN
COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
BIN
COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
Binary file not shown.
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user