mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
various Adventure-related things
This commit is contained in:
@@ -1316,7 +1316,14 @@ public class CardProperty {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (property.startsWith("leastToughness")) {
|
} else if (property.startsWith("leastToughness")) {
|
||||||
final CardCollectionView cards = CardLists.filter(game.getCardsIn(ZoneType.Battlefield), Presets.CREATURES);
|
CardCollectionView cards = CardLists.filter(game.getCardsIn(ZoneType.Battlefield), Presets.CREATURES);
|
||||||
|
if (property.contains("ControlledBy")) {
|
||||||
|
FCollectionView<Player> p = AbilityUtils.getDefinedPlayers(source, property.split("ControlledBy")[1], spellAbility);
|
||||||
|
cards = CardLists.filterControlledBy(cards, p);
|
||||||
|
if (!cards.contains(card)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
for (final Card crd : cards) {
|
for (final Card crd : cards) {
|
||||||
if (crd.getNetToughness() < card.getNetToughness()) {
|
if (crd.getNetToughness() < card.getNetToughness()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
Name:Flame Sword
|
Name:Flame Sword
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
A:AB$ DealDamage | ActivationLimit$ 1 | Cost$ PayShards<3> | ActivationZone$ Command | ValidTgts$ Any | NumDmg$ Z | SubAbility$ Eject | SpellDescription$ Deal 3 damage to any target. If the target is a tapped creature, deal 5 damage to it instead.
|
A:AB$ DealDamage | ActivationLimit$ 1 | Cost$ PayShards<3> | ActivationZone$ Command | ValidTgts$ Any | NumDmg$ X | SubAbility$ Eject | SpellDescription$ CARDNAME deals 3 damage to any target, or 5 damage to target tapped creature.
|
||||||
SVar:X:3
|
SVar:X:Count$Compare Y GE1.5.3
|
||||||
SVar:Y:Targeted$Valid Creature.tapped/Times.2
|
SVar:Y:Targeted$Valid Creature.tapped
|
||||||
SVar:Z:SVar$X/Plus.Y
|
|
||||||
SVar:Eject:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
|
SVar:Eject:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
|
||||||
Oracle:{M}{M}{M}: Flame Sword deals 3 damage to any target, or 5 damage to target tapped creature.
|
Oracle:{M}{M}{M}: Flame Sword deals 3 damage to any target, or 5 damage to target tapped creature.
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,5 @@ SVar:DBEffect:DB$ Effect | StaticAbilities$ PerpetualDebuff | Name$ Penregon Bes
|
|||||||
SVar:PerpetualDebuff:Mode$ Continuous | Affected$ Card.ChosenCard | AddPower$ -1 | AddToughness$ -1 | EffectZone$ Command | AffectedZone$ Battlefield,Hand,Graveyard,Exile,Stack,Library,Command | Description$ This creature perpetually gets -1/-1.
|
SVar:PerpetualDebuff:Mode$ Continuous | Affected$ Card.ChosenCard | AddPower$ -1 | AddToughness$ -1 | EffectZone$ Command | AffectedZone$ Battlefield,Hand,Graveyard,Exile,Stack,Library,Command | Description$ This creature perpetually gets -1/-1.
|
||||||
T:Mode$ Always | TriggerZones$ Battlefield | IsPresent$ Creature.OppCtrl | PresentCompare$ EQ0 | Execute$ TrigSac | TriggerDescription$ When your opponents control no creatures, sacrifice CARDNAME.
|
T:Mode$ Always | TriggerZones$ Battlefield | IsPresent$ Creature.OppCtrl | PresentCompare$ EQ0 | Execute$ TrigSac | TriggerDescription$ When your opponents control no creatures, sacrifice CARDNAME.
|
||||||
SVar:TrigSac:DB$ Sacrifice
|
SVar:TrigSac:DB$ Sacrifice
|
||||||
Oracle:At the beginning of your end step, choose a creature with the least toughness among creatures your opponents control. It perpetually gets -1/-1.\nWhen your opponents control no creatures, sacrifice Penregon Besieged.
|
DeckHas:Ability$Sacrifice
|
||||||
|
Oracle:At the beginning of your end step, choose a creature with the least toughness among creatures your opponents control. It perpetually gets -1/-1.\nWhen your opponents control no creatures, sacrifice Penregon Besieged.
|
||||||
|
|||||||
Reference in New Issue
Block a user