mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Dev mode: Add Card to Battlefield allows to specify whether a creature should have summoning sickness or not, Repeat Last Add Card honors that choice.
This commit is contained in:
@@ -1771,6 +1771,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
private Player lastAddedPlayer;
|
private Player lastAddedPlayer;
|
||||||
private SpellAbility lastAddedSA;
|
private SpellAbility lastAddedSA;
|
||||||
private boolean lastTrigs;
|
private boolean lastTrigs;
|
||||||
|
private boolean lastSummoningSickness;
|
||||||
|
|
||||||
private DevModeCheats() {
|
private DevModeCheats() {
|
||||||
}
|
}
|
||||||
@@ -2162,7 +2163,15 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
} else {
|
} else {
|
||||||
if (noTriggers) {
|
if (noTriggers) {
|
||||||
if (forgeCard.isPermanent() && !forgeCard.isAura()) {
|
if (forgeCard.isPermanent() && !forgeCard.isAura()) {
|
||||||
|
if (forgeCard.isCreature()) {
|
||||||
|
if (!repeatLast) {
|
||||||
|
lastSummoningSickness = getGui().confirm(forgeCard.getView(), "Should " + forgeCard + " be affected with Summoning Sickness?");
|
||||||
|
}
|
||||||
|
}
|
||||||
game.getAction().moveTo(targetZone, forgeCard, null);
|
game.getAction().moveTo(targetZone, forgeCard, null);
|
||||||
|
if (forgeCard.isCreature()) {
|
||||||
|
forgeCard.setSickness(lastSummoningSickness);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
getGui().message("The chosen card is not a permanent or can't exist independently on the battlefield.\nIf you'd like to cast a non-permanent spell, or if you'd like to cast a permanent spell and place it on stack, please use the Cast Spell/Play Land button.", "Error");
|
getGui().message("The chosen card is not a permanent or can't exist independently on the battlefield.\nIf you'd like to cast a non-permanent spell, or if you'd like to cast a permanent spell and place it on stack, please use the Cast Spell/Play Land button.", "Error");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user