mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
WHO 6 cards (#3578)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user