Exemple #1
0
        public static bool CanBlockerBeDealtLeathalCombatDamage(BlockerEvaluationParameters p)
        {
            var blockerEvaluation = new BlockerEvaluation(p);
            var results           = blockerEvaluation.Evaluate();

            return(results.ReceivesLeathalDamage);
        }
Exemple #2
0
        public static int GetAmountOfDamageThatNeedsToBePreventedToSafeBlockerFromDying(Card blocker, Card attacker)
        {
            var evaluation = new BlockerEvaluation(new BlockerEvaluationParameters {
                Blocker = blocker, Attacker = attacker
            });
            var results = evaluation.Evaluate();

            if (results.ReceivesLeathalDamage)
            {
                return(results.DamageDealt);
            }

            return(0);
        }
Exemple #3
0
        public static int GetAmountOfDamageThatNeedsToBePreventedToSafeBlockerFromDying(Card blocker, Card attacker)
        {
            var evaluation = new BlockerEvaluation(new BlockerEvaluationParameters {Blocker = blocker, Attacker = attacker});
              var results = evaluation.Evaluate();

              if (results.ReceivesLeathalDamage)
            return results.DamageDealt;

              return 0;
        }
Exemple #4
0
        public static bool CanBlockerBeDealtLeathalCombatDamage(BlockerEvaluationParameters p)
        {
            var blockerEvaluation = new BlockerEvaluation(p);
              var results = blockerEvaluation.Evaluate();

              return results.ReceivesLeathalDamage;
        }