Add round number to BattleState

This commit is contained in:
henriquenakashima 2020-09-30 22:18:55 -04:00
parent b654419966
commit 8a86423e7d
2 changed files with 21 additions and 7 deletions

View file

@ -177,18 +177,19 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
}
private IEnumerator RunBattleRound() {
this.state.HeroTurn = true;
this.state.AdvanceToTeamTurn(TeamChoice.Heroes);
this.damageTriggers.RemoveAll(t => t.Expiration == TriggerExpiration.StartOfNextHeroTurn);
heroEnergy.Replenish();
monsterEnergy.Replenish();
this.heroDeck.DrawHand();
this.monsterDeck.DrawHand();
yield return RunHeroTurn();
this.state.HeroTurn = false;
this.state.AdvanceToTeamTurn(TeamChoice.Monsters);
yield return RunMonsterTurn();
}