Added suspended restriction in isValid

This commit is contained in:
moomarc
2012-07-12 11:00:48 +00:00
parent f12d767b4a
commit e8e8c8c486
6 changed files with 10 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;