forked from External/mage
Aclazotz, Deepest Betrayal // Temple of the Dead - added card hint for second side, refactored to use standard methods
This commit is contained in:
parent
656c5ed326
commit
eee1462eba
2 changed files with 20 additions and 30 deletions
|
|
@ -11,7 +11,7 @@ import mage.util.CardUtil;
|
|||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Cards in controller hand condition. This condition can decorate other
|
||||
* Cards in hand condition. This condition can decorate other
|
||||
* conditions as well as be used standalone.
|
||||
*
|
||||
* @author LevelX
|
||||
|
|
@ -58,6 +58,16 @@ public class CardsInHandCondition implements Condition {
|
|||
}
|
||||
break;
|
||||
case ANY:
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (ComparisonType.compare(player.getHand().size(), type, this.count)) {
|
||||
conditionApplies = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EACH_PLAYER:
|
||||
boolean conflict = false;
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
player = game.getPlayer(playerId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue