WHO: become_the_pilot.txt (and some tidying) (#4029)

* WHO: become_the_pilot.txt (and some tidying)

* rampaging_ceratops.txt

* tromokratis.txt try again
This commit is contained in:
Northmoc
2023-10-30 09:08:04 -04:00
committed by GitHub
parent 9b7a4299c9
commit 11c8da29c0
7 changed files with 26 additions and 10 deletions

View File

@@ -338,11 +338,6 @@ public class StaticAbilityCantAttackBlock {
applyMinMaxBlockerAbility(stAb, attacker, defender, result);
}
}
if (attacker.hasKeyword("CARDNAME can't be blocked unless all creatures defending player controls block it.")) {
if (defender != null) {
result.setLeft(defender.getCreaturesInPlay().size());
}
}
return result;
}
@@ -353,7 +348,13 @@ public class StaticAbilityCantAttackBlock {
}
if (stAb.hasParam("Min")) {
result.setLeft(AbilityUtils.calculateAmount(stAb.getHostCard(), stAb.getParam("Min"), stAb));
if ("All".equals(stAb.getParam("Min"))) {
if (defender != null) {
result.setLeft(defender.getCreaturesInPlay().size());
}
} else {
result.setLeft(AbilityUtils.calculateAmount(stAb.getHostCard(), stAb.getParam("Min"), stAb));
}
}
if (stAb.hasParam("Max")) {

View File

@@ -2,6 +2,6 @@ Name:Call to Serve
ManaCost:1 W
Types:Enchantment Aura
K:Enchant nonblack creature
A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature.nonBlack | AILogic$ Pump
A:SP$ Attach | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonblack creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 1 | AddToughness$ 2 | AddKeyword$ Flying | AddType$ Angel | Description$ Enchanted creature gets +1/+2, has flying, and is an Angel in addition to its other types.
Oracle:Enchant nonblack creature\nEnchanted creature gets +1/+2, has flying, and is an Angel in addition to its other types.

View File

@@ -2,7 +2,7 @@ Name:Detention Vortex
ManaCost:W
Types:Enchantment Aura
K:Enchant nonland permanent
A:SP$ Attach | Cost$ W | ValidTgts$ Permanent.nonLand | AILogic$ Curse
A:SP$ Attach | ValidTgts$ Permanent.nonLand | TgtPrompt$ Select target nonland permanent | AILogic$ Curse
S:Mode$ Continuous | Affected$ Permanent.EnchantedBy | AddHiddenKeyword$ CARDNAME can't attack or block. & CARDNAME's activated abilities can't be activated. | Description$ Enchanted permanent can't attack or block and its activated abilities can't be activated.
A:AB$ Destroy | Cost$ 3 | Defined$ Self | Activator$ Player.Opponent | SorcerySpeed$ True | SpellDescription$ Destroy CARDNAME. Only your opponents may activate this ability and only as a sorcery.
Oracle:Enchant nonland permanent\nEnchanted permanent can't attack or block, and its activated abilities can't be activated.\n{3}: Destroy Detention Vortex. Only your opponents may activate this ability and only as a sorcery.

View File

@@ -2,7 +2,7 @@ Name:Soul Tithe
ManaCost:1 W
Types:Enchantment Aura
K:Enchant nonland permanent
A:SP$ Attach | Cost$ 1 W | ValidTgts$ Permanent.nonLand | AITgts$ Card.cmcGE2 | AILogic$ Curse
A:SP$ Attach | ValidTgts$ Permanent.nonLand | TgtPrompt$ Select target nonland permanent | AITgts$ Card.cmcGE2 | AILogic$ Curse
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player.EnchantedController | TriggerZones$ Battlefield | Execute$ TrigSac | TriggerDescription$ At the beginning of the upkeep of enchanted permanent's controller, that player sacrifices it unless they pay {X}, where X is its mana value.
SVar:TrigSac:DB$ SacrificeAll | Defined$ Enchanted | UnlessCost$ X | UnlessPayer$ EnchantedController
SVar:X:Enchanted$CardManaCost

View File

@@ -3,5 +3,5 @@ ManaCost:5 U U
Types:Legendary Creature Kraken
PT:8/8
S:Mode$ Continuous | Affected$ Card.Self+notattacking+notblocking | AddKeyword$ Hexproof | Description$ CARDNAME has hexproof unless it's attacking or blocking.
K:CARDNAME can't be blocked unless all creatures defending player controls block it.
S:Mode$ MinMaxBlocker | ValidCard$ Card.Self | Min$ All | Description$ CARDNAME can't be blocked unless all creatures defending player controls block it. (If any creature that player controls doesn't block this creature, it can't be blocked.)
Oracle:Tromokratis has hexproof unless it's attacking or blocking.\nTromokratis can't be blocked unless all creatures defending player controls block it. (If any creature that player controls doesn't block this creature, it can't be blocked.)

View File

@@ -0,0 +1,9 @@
Name:Become the Pilot
ManaCost:3 U U
Types:Enchantment Aura
K:Enchant noncommander creature
A:SP$ Attach | ValidTgts$ Creature.IsNotCommander | TgtPrompt$ Select target noncommander creature | AILogic$ GainControl
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | GainControl$ You | Description$ You control enchanted creature.
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | AddToughness$ 2 | Description$ Enchanted creature gets +2/+2 and can't be blocked unless it's attacking its owner or a permanent its owner controls.
S:Mode$ CantBlockBy | ValidAttacker$ Creature.EnchantedBy | ValidBlocker$ Creature.!ControlledBy EnchantedOwner
Oracle:Enchant noncommander creature\nYou control enchanted creature.\nEnchanted creature gets +2/+2 and can't be blocked unless it's attacking its owner or a permanent its owner controls.

View File

@@ -0,0 +1,6 @@
Name:Rampaging Ceratops
ManaCost:4 R
Types:Creature Dinosaur
PT:5/4
S:Mode$ MinMaxBlocker | ValidCard$ Creature.Self | Min$ 3 | Description$ CARDNAME can't be blocked except by three or more creatures.
Oracle:Rampaging Ceratops can't be blocked except by three or more creatures.