From 577b43102998e6a33ca3aff10ef8315e027222cb Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 15 Mar 2014 17:44:56 +0100 Subject: [PATCH] * AI player - Fixed a bug that sometimes valid targets were not taken into account. --- .../src/main/java/mage/player/ai/ComputerPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java b/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java index 3b40337212..f61fa751b5 100644 --- a/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java @@ -1824,7 +1824,7 @@ public class ComputerPlayer> extends PlayerImpl i protected List threats(UUID playerId, UUID sourceId, FilterPermanent filter, Game game, List targets) { List threats = (playerId == null || sourceId ==null) ? game.getBattlefield().getActivePermanents(filter, this.getId(), sourceId, game) : // all permanents within the range of the player - game.getBattlefield().getAllActivePermanents(filter, playerId, game); // all controlled permanents of playerId + game.getBattlefield().getActivePermanents(filter, playerId, sourceId, game); Iterator it = threats.iterator(); while (it.hasNext()) { // remove permanents already targeted