This commit is contained in:
tool4EvEr
2021-10-07 22:00:24 +02:00
parent 2b2545d4ae
commit 34b19c0207
5 changed files with 10 additions and 9 deletions

View File

@@ -526,16 +526,16 @@ public class PumpAi extends PumpAiBase {
}
list = getCurseCreatures(ai, sa, defense, attack, keywords);
} else {
if (!tgt.canTgtCreature()) {
ZoneType zone = tgt.getZone().get(0);
list = new CardCollection(game.getCardsIn(zone));
} else {
list = getPumpCreatures(ai, sa, defense, attack, keywords, immediately);
}
if (sa.canTarget(ai)) {
sa.getTargets().add(ai);
return true;
}
if (tgt.canTgtCreature()) {
list = getPumpCreatures(ai, sa, defense, attack, keywords, immediately);
} else {
ZoneType zone = tgt.getZone().get(0);
list = new CardCollection(game.getCardsIn(zone));
}
}
list = CardLists.getValidCards(list, tgt.getValidTgts(), ai, source, sa);

View File

@@ -426,6 +426,7 @@ public class TargetRestrictions {
*/
public final boolean canTgtCreature() {
for (final String s : this.validTgts) {
// TODO check IsCommander when in that variant
if ((s.contains("Creature") || s.startsWith("Permanent"))
&& !s.contains("nonCreature")) {
return true;

View File

@@ -1,6 +1,6 @@
Name:Seismic Shift
ManaCost:3 R
Types:Sorcery
A:SP$ Destroy | Cost$ 3 R | ValidTgts$ Land | TgtPrompt$ Select target artifact or land | SubAbility$ DBPump | SpellDescription$ Destroy target land.
A:SP$ Destroy | Cost$ 3 R | ValidTgts$ Land | TgtPrompt$ Select target land | SubAbility$ DBPump | SpellDescription$ Destroy target land.
SVar:DBPump:DB$ Pump | ValidTgts$ Creature | KW$ HIDDEN CARDNAME can't block. | IsCurse$ True | TargetMin$ 0 | TargetMax$ 2 | TgtPrompt$ Select up to two target creatures | SpellDescription$ Up to two target creatures can't block this turn.
Oracle:Destroy target land. Up to two target creatures can't block this turn.