Enemies drop energy before, intentions are more accurate

This commit is contained in:
henriquenakashima 2020-10-01 22:52:50 -04:00
parent 94b3309bb7
commit 737a851283
6 changed files with 64 additions and 13 deletions

View file

@ -124,11 +124,14 @@ public class HandControls<BaseCardT> where BaseCardT : BaseCard
if (cardPlayability == PlayabilityState.PlayableImmediately
|| cardPlayability == PlayabilityState.PlayableInOwnTurn) {
if (this.intentions.WillUseCard(card)) {
// Debug.Log("Display state of " + card.GetDisplayName() + " = IntendedToPlay");
cardUI.State = PlayableState.IntendedToPlay;
} else {
// Debug.Log("Display state of " + card.GetDisplayName() + " = Playable");
cardUI.State = PlayableState.Playable;
}
} else {
// Debug.Log("Display state of " + card.GetDisplayName() + " = Unplayable");
cardUI.State = PlayableState.Unplayable;
}
}