* Knight of Malice - Fixed that all controlled creatures were boost instead of only the Knight.

This commit is contained in:
LevelX2 2018-04-19 22:33:51 +02:00
parent 2d8d02c315
commit 19ad6da608
2 changed files with 10 additions and 18 deletions

View file

@ -27,11 +27,11 @@
*/
package mage.abilities.condition.common;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.filter.FilterPermanent;
import mage.game.Game;
import java.util.UUID;
/**
* @author North
@ -47,12 +47,12 @@ public class AnyPlayerControlsCondition implements Condition {
@Override
public boolean apply(Game game, Ability source) {
for (UUID player : game.getPlayers().keySet()) {
if(player != null && game.getBattlefield().countAll(filter, player, game)> 0){
return true;
for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) {
if (game.getBattlefield().countAll(filter, playerId, game) == 0) {
return false;
}
}
return false;
return true;
}
}