mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
- Fixed Jace's Phantasm.
This commit is contained in:
parent
cf62ba330d
commit
073e4f7748
1 changed files with 4 additions and 4 deletions
|
@ -21,10 +21,10 @@ public class CardsInOpponentGraveCondition implements Condition {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player p = game.getPlayer(source.getControllerId());
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
if (p != null) {
|
if (player != null) {
|
||||||
for (UUID oppId : p.getInRange()) {
|
for (UUID playerId : game.getOpponents(source.getControllerId())) {
|
||||||
Player opponent = game.getPlayer(oppId);
|
Player opponent = game.getPlayer(playerId);
|
||||||
if (opponent != null && opponent.getGraveyard().size() >= value)
|
if (opponent != null && opponent.getGraveyard().size() >= value)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue