mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Knight of Malice - Fixed that all controlled creatures were boost instead of only the Knight.
This commit is contained in:
parent
2d8d02c315
commit
19ad6da608
2 changed files with 10 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue