mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Converted Counterbalance to script.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
Name:Counterbalance
|
||||
ManaCost:U U
|
||||
Types:Enchantment
|
||||
Text:Whenever an opponent plays a spell, you may reveal the top card of your library. If you do, counter that spell if it has the same converted mana cost as the revealed card.
|
||||
SVar:RemAIDeck:True
|
||||
Text:no text
|
||||
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | OptionalDecider$ You | TriggerZones$ Battlefield | Execute$ TrigReveal | TriggerDescription$ Whenever an opponent casts a spell, you may reveal the top card of your library. If you do, counter that spell if it has the same converted mana cost as the revealed card.
|
||||
SVar:TrigReveal:AB$Dig | Cost$ 0 | DigNum$ 1 | Reveal$ True | DestinationZone$ Library | LibraryPosition$ 0 | LibraryPosition2$ 0 | SubAbility$ SVar=DBCounter
|
||||
SVar:DBCounter:DB$Counter | Cost$ 0 | Defined$ TriggeredSpellAbility | ConditionPresent$ Card.cmcEQX | ConditionDefined$ TriggeredCard | ConditionCompare$ GE1
|
||||
SVar:X:Count$TopOfLibraryCMC
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/counterbalance.jpg
|
||||
SetInfo:CSP|Uncommon|http://magiccards.info/scans/en/cs/31.jpg
|
||||
|
||||
@@ -9,6 +9,7 @@ SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Exile
|
||||
K:Evoke:B
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
|
||||
SVar:TrigSac:AB$Sacrifice | Cost$ 0
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/offalsnout.jpg
|
||||
SetInfo:MOR|Uncommon|http://magiccards.info/scans/en/mt/71.jpg
|
||||
|
||||
@@ -2909,14 +2909,9 @@ public class Card extends MyObservable {
|
||||
|
||||
if (Property.substring(z).equals("X")) {
|
||||
x = CardFactoryUtil.xCount(source, source.getSVar("X"));
|
||||
}
|
||||
else
|
||||
x = Integer.parseInt(Property.substring(z));
|
||||
|
||||
if (Property.substring(z).equals("Y")) {
|
||||
} else if (Property.substring(z).equals("Y")) {
|
||||
x = CardFactoryUtil.xCount(source, source.getSVar("Y"));
|
||||
}
|
||||
else
|
||||
} else
|
||||
x = Integer.parseInt(Property.substring(z));
|
||||
|
||||
if (!compare(y, Property, x))
|
||||
|
||||
Reference in New Issue
Block a user