From cb9f92d419fe3b1e64ea0a63d5bef3ec7aba0d53 Mon Sep 17 00:00:00 2001 From: Agetian Date: Thu, 6 Oct 2016 20:24:34 +0000 Subject: [PATCH] - Kozilek's Pathfinder AI improvement: the AI should not consider the "target creature can't block CARDNAME this turn" ability if the source of the ability is tapped and not attacking. --- forge-ai/src/main/java/forge/ai/ability/PumpAiBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/PumpAiBase.java b/forge-ai/src/main/java/forge/ai/ability/PumpAiBase.java index fca818d877c..c68bb541e3d 100644 --- a/forge-ai/src/main/java/forge/ai/ability/PumpAiBase.java +++ b/forge-ai/src/main/java/forge/ai/ability/PumpAiBase.java @@ -120,7 +120,8 @@ public abstract class PumpAiBase extends SpellAbilityAi { } } else if (keyword.endsWith("CantBlockCardUIDSource")) { // can't block CARDNAME this turn if (ph.isPlayerTurn(human) || ph.getPhase().isAfter(PhaseType.COMBAT_DECLARE_BLOCKERS) - || ph.getPhase().isBefore(PhaseType.MAIN1) || !CombatUtil.canBlock(sa.getHostCard(), card)) { + || ph.getPhase().isBefore(PhaseType.MAIN1) || !CombatUtil.canBlock(sa.getHostCard(), card) + || (sa.getHostCard().isTapped() && (combat == null || !combat.isAttacking(sa.getHostCard())))) { return false; } } else if (keyword.endsWith("This card doesn't untap during your next untap step.")) {