mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Added suspended restriction in isValid
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:9 B
|
|||||||
Types:Sorcery
|
Types:Sorcery
|
||||||
Text:no text
|
Text:no text
|
||||||
K:Suspend:2:2 B B
|
K:Suspend:2:2 B B
|
||||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player | Execute$ TrigCursePayUP | TriggerZones$ Exile | IsPresent$ Card.counters_GE1_TIME+Self | PresentZone$ Exile | TriggerDescription$ At the beginning of each player's upkeep, if CARDNAME is suspended, that player may sacrifice a permanent. If he or she does, put two time counters on CARDNAME.
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player | Execute$ TrigCursePayUP | TriggerZones$ Exile | IsPresent$ Card.suspended+Self | PresentZone$ Exile | TriggerDescription$ At the beginning of each player's upkeep, if CARDNAME is suspended, that player may sacrifice a permanent. If he or she does, put two time counters on CARDNAME.
|
||||||
A:SP$ Sacrifice | Cost$ 9 B | ValidTgts$ Player | TgtPrompt$ Select target player | Amount$ CurseX | SacValid$ Permanent | References$ CurseX | SpellDescription$ Target player sacrifices half the permanents he or she controls, rounded down.
|
A:SP$ Sacrifice | Cost$ 9 B | ValidTgts$ Player | TgtPrompt$ Select target player | Amount$ CurseX | SacValid$ Permanent | References$ CurseX | SpellDescription$ Target player sacrifices half the permanents he or she controls, rounded down.
|
||||||
SVar:TrigCursePayUP:AB$ Sacrifice | Cost$ 0 | Amount$ 1 | SacValid$ Permanent | Defined$ TriggeredPlayer | Optional$ True | RememberSacrificed$ True | SubAbility$ DBCursePutCounter
|
SVar:TrigCursePayUP:AB$ Sacrifice | Cost$ 0 | Amount$ 1 | SacValid$ Permanent | Defined$ TriggeredPlayer | Optional$ True | RememberSacrificed$ True | SubAbility$ DBCursePutCounter
|
||||||
SVar:DBCursePutCounter:DB$ PutCounter | CounterType$ TIME | CounterNum$ 2 | ConditionCheckSVar$ CurseY | ConditionSVarCompare$ GT0 | SubAbility$ DBCurseCleanup | References$ CurseY
|
SVar:DBCursePutCounter:DB$ PutCounter | CounterType$ TIME | CounterNum$ 2 | ConditionCheckSVar$ CurseY | ConditionSVarCompare$ GT0 | SubAbility$ DBCurseCleanup | References$ CurseY
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Text:no text
|
|||||||
PT:6/6
|
PT:6/6
|
||||||
K:Unblockable
|
K:Unblockable
|
||||||
K:Suspend:9:2 U
|
K:Suspend:9:2 U
|
||||||
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | Execute$ TrigRemoveCounter | IsPresent$ Card.counters_GE1_TIME+Self | PresentZone$ Exile | TriggerDescription$ Whenever an opponent casts a spell, if CARDNAME is suspended, remove a time counter from it.
|
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | Execute$ TrigRemoveCounter | IsPresent$ Card.suspended | PresentZone$ Exile | TriggerDescription$ Whenever an opponent casts a spell, if CARDNAME is suspended, remove a time counter from it.
|
||||||
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ TIME | CounterNum$ 1
|
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ TIME | CounterNum$ 1
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/deep_sea_kraken.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/deep_sea_kraken.jpg
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Text:no text
|
|||||||
PT:4/4
|
PT:4/4
|
||||||
K:Fear
|
K:Fear
|
||||||
K:Suspend:7:1 B
|
K:Suspend:7:1 B
|
||||||
T:Mode$ ChangesZone | ValidCard$ Card.nonToken+YouDontCtrl | Origin$ Any | Destination$ Graveyard | IsPresent$ Card.Self+counters_GE1_TIME | PresentZone$ Exile | TriggerZones$ Exile | Execute$ TrigRemoveCounter | OptionalDecider$ You | TriggerDescription$ Whenever a card is put into an opponent's graveyard from anywhere, if CARDNAME is suspended, you may remove a time counter from CARDNAME.
|
T:Mode$ ChangesZone | ValidCard$ Card.nonToken+YouDontCtrl | Origin$ Any | Destination$ Graveyard | IsPresent$ Card.Self+.suspended | PresentZone$ Exile | TriggerZones$ Exile | Execute$ TrigRemoveCounter | OptionalDecider$ You | TriggerDescription$ Whenever a card is put into an opponent's graveyard from anywhere, if CARDNAME is suspended, you may remove a time counter from CARDNAME.
|
||||||
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ TIME | CounterNum$ 1
|
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ TIME | CounterNum$ 1
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/nihilith.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/nihilith.jpg
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ PT:4/4
|
|||||||
K:Flying
|
K:Flying
|
||||||
K:Suspend:2:R R
|
K:Suspend:2:R R
|
||||||
A:AB$ Pump | Cost$ R | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
|
A:AB$ Pump | Cost$ R | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
|
||||||
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | TriggerZones$ Exile | IsPresent$ Card.counters_GE1_TIME+Self | PresentZone$ Exile | OptionalDecider$ Opponent | Execute$ TrigPutCounter | TriggerDescription$ Whenever an opponent casts a spell, if CARDNAME is suspended, that player may put a time counter on CARDNAME.
|
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | TriggerZones$ Exile | IsPresent$ Card.suspended+Self | PresentZone$ Exile | OptionalDecider$ Opponent | Execute$ TrigPutCounter | TriggerDescription$ Whenever an opponent casts a spell, if CARDNAME is suspended, that player may put a time counter on CARDNAME.
|
||||||
SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ TIME | CounterNum$ 1
|
SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ TIME | CounterNum$ 1
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/pardic_dragon.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/pardic_dragon.jpg
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Types:Instant
|
|||||||
Text:no text
|
Text:no text
|
||||||
A:SP$ Charm | Cost$ 2 U | CharmNum$ 1 | Choices$ Permanent,Suspended | SpellDescription$ Return target nonland permanent or suspended card to its owner's hand.
|
A:SP$ Charm | Cost$ 2 U | CharmNum$ 1 | Choices$ Permanent,Suspended | SpellDescription$ Return target nonland permanent or suspended card to its owner's hand.
|
||||||
SVar:Permanent:DB$ChangeZone | ValidTgts$ Permanent.nonLand | TgtPrompt$ Choose target non-Land permanent. | Origin$ Battlefield | Destination$ Hand | SpellDescription$ Target nonland permanent
|
SVar:Permanent:DB$ChangeZone | ValidTgts$ Permanent.nonLand | TgtPrompt$ Choose target non-Land permanent. | Origin$ Battlefield | Destination$ Hand | SpellDescription$ Target nonland permanent
|
||||||
SVar:Suspended:DB$ChangeZone | ChangeType$ Card.counters_GE1_TIME | TgtPrompt$ Choose target suspended card. | Hidden$ True | Origin$ Exile | Destination$ Hand | SpellDescription$ Target suspended card
|
SVar:Suspended:DB$ChangeZone | ChangeType$ Card.suspended | TgtPrompt$ Choose target suspended card. | Hidden$ True | Origin$ Exile | Destination$ Hand | SpellDescription$ Target suspended card
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/vensers_diffusion.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/vensers_diffusion.jpg
|
||||||
SetInfo:FUT|Common|http://magiccards.info/scans/en/fut/47.jpg
|
SetInfo:FUT|Common|http://magiccards.info/scans/en/fut/47.jpg
|
||||||
|
|||||||
@@ -7065,6 +7065,11 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (property.startsWith("suspended")) {
|
||||||
|
if (!this.hasSuspend() || !AllZoneUtil.isCardExiled(this)
|
||||||
|
|| !AllZoneUtil.compare(this.getCounters(Counters.getType("TIME")), "GE", Integer.parseInt("1"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
} else if (property.startsWith("power") || property.startsWith("toughness") || property.startsWith("cmc")) {
|
} else if (property.startsWith("power") || property.startsWith("toughness") || property.startsWith("cmc")) {
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user