Update
This commit is contained in:
@@ -149,14 +149,14 @@ namespace Continentis.MainGame.Combat
|
||||
currentCharacter = characterController.actionOrderList[0];
|
||||
|
||||
currentCharacter.eventSubmodule.onActionStart.Invoke();
|
||||
currentCharacter.combatBuffSubmodule.ActionStart();
|
||||
currentCharacter.recordSubmodule.SetAction(currentRound, ++currentActionIndex);
|
||||
|
||||
|
||||
if (currentCharacter is PlayerHero playerHero)
|
||||
{
|
||||
CombatMainPage combatMainPage = CombatUIManager.Instance.combatMainPage;
|
||||
|
||||
playerHero.deckSubmodule.SetUpHandCardViews();
|
||||
playerHero.combatBuffSubmodule.ActionStart();
|
||||
|
||||
combatMainPage.handPile.isUpdatingLayout = false;
|
||||
CommandQueueManager.Instance.AddCommand(playerHero.deckSubmodule.DrawCards(playerHero.GetAttribute("DrawCardAmountPerAction")));
|
||||
@@ -191,8 +191,14 @@ namespace Continentis.MainGame.Combat
|
||||
CommandQueueManager.Instance.AddCommand(new Cmd_Function(0.25f, null));
|
||||
foreach (IntendedCard intendedCard in currentCharacter.intentionSubmodule.intendedCards)
|
||||
{
|
||||
CommandQueueManager.Instance.AddCommand(new Cmd_Function(0.25f, () => intendedCard.cardInstance.DestroyIntentionCardView()));
|
||||
intendedCard.cardInstance.Play(intendedCard.targets, currentCharacter, false);
|
||||
//TODO: 临时的,刷新一次意图目标
|
||||
currentCharacter.CheckAvailabilityAndSetTargets(intendedCard.cardInstance, out intendedCard.targets);
|
||||
|
||||
CommandQueueManager.Instance.AddCommand(new Cmd_Function(0.25f, () =>
|
||||
{
|
||||
intendedCard.cardInstance.Play(intendedCard.targets, currentCharacter);
|
||||
intendedCard.cardInstance.DestroyIntentionCardView();
|
||||
}));
|
||||
}
|
||||
CommandQueueManager.Instance.AddCommand(new Cmd_Function(0f, EndAction));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user