mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Update Mudhole.java
This commit is contained in:
parent
5d71f3491d
commit
a2a2a40dac
1 changed files with 7 additions and 4 deletions
|
@ -83,10 +83,13 @@ class MudholeEffect extends OneShotEffect<MudholeEffect> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player targetPlayer = game.getPlayer(source.getFirstTarget());
|
||||
for (Card card: targetPlayer.getGraveyard().getCards(filter, game)) {
|
||||
card.moveToExile(null, "", source.getId(), game);
|
||||
}
|
||||
Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
if (targetPlayer != null) {
|
||||
for (Card card: targetPlayer.getGraveyard().getCards(filter, game)) {
|
||||
card.moveToExile(null, "", source.getSourceId(), game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue