WHO 6 cards (#3578)

This commit is contained in:
Simisays
2023-08-11 20:28:51 +02:00
committed by GitHub
parent 70c424d407
commit a4011d8500
16 changed files with 89 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import forge.game.ability.SpellAbilityEffect;
import forge.game.card.CardCollectionView;
import forge.game.player.Player;
import forge.game.spellability.SpellAbility;
import forge.util.Localizer;
public class PlaneswalkEffect extends SpellAbilityEffect {
@@ -16,6 +17,10 @@ public class PlaneswalkEffect extends SpellAbilityEffect {
if (game.getActivePlanes() == null) { // not a planechase game, nothing happens
return;
}
if (sa.hasParam("Optional") && !sa.getActivatingPlayer().getController().confirmAction(sa, null,
Localizer.getInstance().getMessage("lblWouldYouLikeToPlaneswalk"), null)) {
return;
}
if (!sa.hasParam("DontPlaneswalkAway")) {
for (Player p : game.getPlayers()) {