mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- reverted some changes because r22822 fixes most of the cases
This commit is contained in:
@@ -407,7 +407,7 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
||||
boolean optional = sa.hasParam("Optional");
|
||||
|
||||
|
||||
for (Card tgtC : tgtCards) {
|
||||
for (final Card tgtC : tgtCards) {
|
||||
if (tgt != null && tgtC.isInPlay() && !tgtC.canBeTargetedBy(sa)) {
|
||||
continue;
|
||||
}
|
||||
@@ -419,7 +419,6 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
||||
if (optional && false == player.getController().confirmAction(sa, null, prompt) )
|
||||
continue;
|
||||
|
||||
tgtC = game.getCardState(tgtC);
|
||||
final Zone originZone = game.getZoneOf(tgtC);
|
||||
|
||||
// if Target isn't in the expected Zone, continue
|
||||
|
||||
@@ -22,7 +22,7 @@ public class SacrificeEffect extends SpellAbilityEffect {
|
||||
public void resolve(SpellAbility sa) {
|
||||
final Player activator = sa.getActivatingPlayer();
|
||||
final Game game = activator.getGame();
|
||||
final Card card = game.getCardState(sa.getSourceCard());
|
||||
final Card card = sa.getSourceCard();
|
||||
|
||||
// Expand Sacrifice keyword here depending on what we need out of it.
|
||||
final String num = sa.hasParam("Amount") ? sa.getParam("Amount") : "1";
|
||||
|
||||
Reference in New Issue
Block a user