public static bool CanBlockerBeDealtLeathalCombatDamage(BlockerEvaluationParameters p) { var blockerEvaluation = new BlockerEvaluation(p); var results = blockerEvaluation.Evaluate(); return(results.ReceivesLeathalDamage); }
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); }
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; }
public static bool CanBlockerBeDealtLeathalCombatDamage(BlockerEvaluationParameters p) { var blockerEvaluation = new BlockerEvaluation(p); var results = blockerEvaluation.Evaluate(); return results.ReceivesLeathalDamage; }