mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Clean up
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user