Trove of Temptation working for Human.

This commit is contained in:
LevelX2 2017-09-15 17:51:54 +02:00
parent 24c2c69a81
commit 5996aa12e6
8 changed files with 45 additions and 38 deletions

View file

@ -1073,7 +1073,7 @@ public class HumanPlayer extends PlayerImpl {
List<UUID> possibleAttackers = new ArrayList<>();
for (Permanent possibleAttacker : game.getBattlefield().getActivePermanents(filter, attackingPlayerId, game)) {
if (possibleAttacker.canAttack(game)) {
if (possibleAttacker.canAttack(null, game)) {
possibleAttackers.add(possibleAttacker.getId());
}
}
@ -1207,7 +1207,7 @@ public class HumanPlayer extends PlayerImpl {
// already attacks other player taht has to be attacked
continue;
}
if (defendingPlayerId != null || attacker.canAttack(forcedToAttackId, game)) {
if (defendingPlayerId != null || attacker.canAttackInPrinciple(forcedToAttackId, game)) {
game.informPlayer(this, "You are forced to attack " + forcedToAttack.getName() + " or a controlled planeswalker e.g. with " + attacker.getIdName() + ".");
return false;
}