Beispiel #1
0
 /// <summary>
 ///     Determine if we should play a card with charge
 /// </summary>
 /// <returns>PlayPriority</returns>
 public static PlayPriority ShouldICharge(int attack)
 {
     if (Murloc.DoTheEnemyHasATaunter())
     {
         HSCard Taunter = Murloc.RetrieveEnemyTaunter();
         if (Taunter != null && Taunter.Health <= attack)
         {
             return(PlayPriority.High);
         }
         else
         {
             return(PlayPriority.Low);
         }
     }
     else
     {
         if (TritonHS.EnemyHeroHealthAndArmor <= attack)
         {
             return(PlayPriority.Ultra);
         }
         else
         {
             return(PlayPriority.Normal);
         }
     }
 }
Beispiel #2
0
        public HSCard GetCardToUseOn(HSCard thisCard)
        {
            if (Murloc.DoTheEnemyHasATaunter())
            {
                // Do our attack on enemy taunter
                return(Murloc.RetrieveEnemyTaunter());
            }

            // Enemy has NO taunter and we can target him => go for the face
            if (TritonHS.EnemyHero.CanBeTargetedByOpponents)
            {
                // Do our attack
                return(TritonHS.EnemyHero);
            }

            return(null);
        }