public static void PlayCard(LbCard card) { if (!card.CanPlay) { return; } ActionQueue.Add(new PlayCardAction(card)); }
public static LbCard GetLowestEnemyTaunt() { LbCard lowestTaunt = null; foreach (var card in EnemyPlayer.CardsInField()) { if (!card.HasTaunt) { continue; } if (lowestTaunt == null || (card.RemainingHealth < lowestTaunt.RemainingHealth)) { lowestTaunt = card; } else if (lowestTaunt.RemainingHealth == card.RemainingHealth && lowestTaunt.AttackDamage < card.AttackDamage) { lowestTaunt = card; } } return(lowestTaunt); }
public bool CanKill(LbCard card) { return(AttackDamage > card.RemainingHealth); }
public void Attack(LbCard target) { ActionQueue.Add(new AttackAction(this, target)); }