Add round number to BattleState
This commit is contained in:
parent
b654419966
commit
8a86423e7d
2 changed files with 21 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue