- 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.

This commit is contained in:
Agetian
2016-10-06 20:24:34 +00:00
parent d2fb20b341
commit cb9f92d419

View File

@@ -120,7 +120,8 @@ public abstract class PumpAiBase extends SpellAbilityAi {
} }
} else if (keyword.endsWith("CantBlockCardUIDSource")) { // can't block CARDNAME this turn } else if (keyword.endsWith("CantBlockCardUIDSource")) { // can't block CARDNAME this turn
if (ph.isPlayerTurn(human) || ph.getPhase().isAfter(PhaseType.COMBAT_DECLARE_BLOCKERS) 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; return false;
} }
} else if (keyword.endsWith("This card doesn't untap during your next untap step.")) { } else if (keyword.endsWith("This card doesn't untap during your next untap step.")) {