mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Clean up checks (#9006)
This commit is contained in:
@@ -1597,17 +1597,17 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
|||||||
final boolean imprint = srcSA.hasParam("Imprint");
|
final boolean imprint = srcSA.hasParam("Imprint");
|
||||||
if (tgtSA.isAbility()) {
|
if (tgtSA.isAbility()) {
|
||||||
// Shouldn't be able to target Abilities but leaving this in for now
|
// Shouldn't be able to target Abilities but leaving this in for now
|
||||||
} else if (srcSA.getParam("Destination").equals("Graveyard")) {
|
} else if (destination == ZoneType.Graveyard) {
|
||||||
movedCard = game.getAction().moveToGraveyard(tgtHost, srcSA, params);
|
movedCard = game.getAction().moveToGraveyard(tgtHost, srcSA, params);
|
||||||
} else if (srcSA.getParam("Destination").equals("Exile")) {
|
} else if (destination == ZoneType.Exile) {
|
||||||
if (!tgtHost.canExiledBy(srcSA, true)) {
|
if (!tgtHost.canExiledBy(srcSA, true)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
movedCard = game.getAction().exile(tgtHost, srcSA, params);
|
movedCard = game.getAction().exile(tgtHost, srcSA, params);
|
||||||
handleExiledWith(movedCard, srcSA);
|
handleExiledWith(movedCard, srcSA);
|
||||||
} else if (srcSA.getParam("Destination").equals("Hand")) {
|
} else if (destination == ZoneType.Hand) {
|
||||||
movedCard = game.getAction().moveToHand(tgtHost, srcSA, params);
|
movedCard = game.getAction().moveToHand(tgtHost, srcSA, params);
|
||||||
} else if (srcSA.getParam("Destination").equals("Library")) {
|
} else if (destination == ZoneType.Library) {
|
||||||
movedCard = game.getAction().moveToLibrary(tgtHost, libPos, srcSA, params);
|
movedCard = game.getAction().moveToLibrary(tgtHost, libPos, srcSA, params);
|
||||||
if (srcSA.hasParam("Shuffle") && "True".equals(srcSA.getParam("Shuffle"))) {
|
if (srcSA.hasParam("Shuffle") && "True".equals(srcSA.getParam("Shuffle"))) {
|
||||||
tgtHost.getOwner().shuffle(srcSA);
|
tgtHost.getOwner().shuffle(srcSA);
|
||||||
|
|||||||
Reference in New Issue
Block a user