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
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player p = game.getPlayer(source.getControllerId());
|
||||
if (p != null) {
|
||||
for (UUID oppId : p.getInRange()) {
|
||||
Player opponent = game.getPlayer(oppId);
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
for (UUID playerId : game.getOpponents(source.getControllerId())) {
|
||||
Player opponent = game.getPlayer(playerId);
|
||||
if (opponent != null && opponent.getGraveyard().size() >= value)
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue