mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Bojuka Bog - Fixed card movement to exile missing group movement handling (fixes #7243).
This commit is contained in:
parent
3f44d9eef3
commit
991019088f
1 changed files with 3 additions and 9 deletions
|
@ -2,9 +2,6 @@
|
|||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
|
@ -31,13 +28,10 @@ public class ExileGraveyardAllTargetPlayerEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Player targetPlayer = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
||||
if (targetPlayer != null) {
|
||||
List<UUID> graveyard = new ArrayList<>(targetPlayer.getGraveyard());
|
||||
for (UUID cardId : graveyard) {
|
||||
game.getCard(cardId).moveToZone(Zone.EXILED, source, game, false);
|
||||
}
|
||||
return true;
|
||||
if (targetPlayer != null && controller != null) {
|
||||
return targetPlayer.moveCards(targetPlayer.getGraveyard(), Zone.EXILED, source, game);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue