Draw monster hand

This commit is contained in:
henriquenakashima 2020-09-20 14:28:10 -04:00
parent fb453702ba
commit c7d2302326
3 changed files with 31 additions and 12 deletions

View file

@ -157,7 +157,7 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
hero.ResetBlock();
}
// Heroes act until they pas
// Heroes act until they pass
while (!this.heroPassedTurn) {
yield return null;
}
@ -177,7 +177,7 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
monster.ResetBlock();
}
// Start of monster turn
// Monsters act until they pass
List<MonsterCard> monsterHand = this.monsterDeck.GetHandPile();
for (int i = 0; i < monsterHand.Count; i++) {
MonsterCard monsterCard = monsterHand[i];
@ -185,6 +185,9 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
yield return UseMonsterCard(monsterCard);
}
}
// End of monster turn
this.monsterDeck.DiscardHand();
}
public void NotifyHeroCardUsed(HeroCard card) {