- Fixed AI being afraid of his own Circle of Flame.

This commit is contained in:
Sloth
2015-10-26 07:57:17 +00:00
parent 417a228b83
commit 334ab93d7b

View File

@@ -740,6 +740,20 @@ public class ComputerUtilCombat {
return false;
}
}
if (trigParams.containsKey("Attacked")) {
if (combat.isAttacking(attacker)) {
GameEntity attacked = combat.getDefenderByAttacker(attacker);
if (!CardTraitBase.matchesValid(attacked, trigParams.get("Attacked").split(","), source)) {
return false;
}
} else {
if ("You,Planeswalker.YouCtrl".equals(trigParams.get("Attacked"))) {
if (source.getController() == attacker.getController()) {
return false;
}
}
}
}
}
// defender == null means unblocked