mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Trove of Temptation working for Human.
This commit is contained in:
parent
24c2c69a81
commit
5996aa12e6
8 changed files with 45 additions and 38 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue