Fix: fixed MayFlashSac

This commit is contained in:
Hanmac
2018-05-05 18:47:20 +02:00
parent 0033edbeda
commit 87b8ac38f2
3 changed files with 7 additions and 8 deletions

View File

@@ -201,11 +201,10 @@ public final class GameActionUtil {
} else {
sb.append(host);
}
}
if (o.getAbility().hasParam("MayPlayText")) {
sb.append(" (").append(o.getAbility().getParam("MayPlayText")).append(")");
}
}
sb.append(o.toString(false));
newSA.setDescription(sb.toString());
alternatives.add(newSA);

View File

@@ -3042,6 +3042,7 @@ public class CardFactoryUtil {
SpellAbility saDelay = AbilityFactory.getAbility(strDelay, card);
saDelay.setAdditionalAbility("Execute", (AbilitySub) AbilityFactory.getAbility(strSac, card));
final Trigger trigger = TriggerHandler.parseTrigger(strTrig.toString(), card, intrinsic);
trigger.setOverridingAbility(saDelay);
inst.addTrigger(trigger);
}
}
@@ -4285,9 +4286,9 @@ public class CardFactoryUtil {
effect = "Mode$ CantBlockBy | ValidAttacker$ Creature.Self | ValidBlocker$ " + k[1]
+ " | Description$ CARDNAME can't be blocked " + getTextForKwCantBeBlockedByType(keyword);
} else if (keyword.equals("MayFlashSac")) {
effect = "Mode$ Continuous | EffectZone$ All | Affected$ Card.Self "
+ " | MayPlay$ True | MayPlayWithFlash$ True | AffectedZone$ Exile,Graveyard,Hand,Library,Stack "
+ " | Description$ " + inst.getReminderText();
effect = "Mode$ Continuous | EffectZone$ All | Affected$ Card.Self | Secondary$ True"
+ " | MayPlay$ True | MayPlayWithFlash$ True | MayPlayText$ Sacrifice at the next cleanup step"
+ " | AffectedZone$ Exile,Graveyard,Hand,Library,Stack | Description$ " + inst.getReminderText();
}
if (effect != null) {

View File

@@ -23,7 +23,6 @@ import forge.card.CardStateName;
import forge.game.Game;
import forge.game.card.Card;
import forge.game.card.CardCollection;
import forge.game.card.CardLists;
import forge.game.card.CardUtil;
import forge.game.cost.Cost;
import forge.game.cost.CostPayment;