- Converted Chalice of the Void to script.

- Removed some redundant SVars.
This commit is contained in:
jendave
2011-08-07 01:40:49 +00:00
parent 51455122a3
commit e1a0985bb7
20 changed files with 47 additions and 49 deletions

4
.gitattributes vendored
View File

@@ -1233,7 +1233,7 @@ res/cardsfolder/chandler.txt -text svneol=native#text/plain
res/cardsfolder/chandra_nalaar.txt -text svneol=native#text/plain
res/cardsfolder/chandras_outrage.txt -text svneol=native#text/plain
res/cardsfolder/chandras_spitfire.txt -text svneol=native#text/plain
res/cardsfolder/change_of_heart.txt svneol=native#text/plain
res/cardsfolder/change_of_heart.txt -text svneol=native#text/plain
res/cardsfolder/changeling_berserker.txt -text svneol=native#text/plain
res/cardsfolder/changeling_hero.txt -text svneol=native#text/plain
res/cardsfolder/changeling_sentinel.txt -text svneol=native#text/plain
@@ -1581,7 +1581,7 @@ res/cardsfolder/culling_the_weak.txt -text svneol=native#text/plain
res/cardsfolder/cultbrand_cinder.txt -text svneol=native#text/plain
res/cardsfolder/cultivate.txt -text svneol=native#text/plain
res/cardsfolder/cumber_stone.txt -text svneol=native#text/plain
res/cardsfolder/cunning.txt svneol=native#text/plain
res/cardsfolder/cunning.txt -text svneol=native#text/plain
res/cardsfolder/cunning_advisor.txt -text svneol=native#text/plain
res/cardsfolder/cunning_lethemancer.txt -text svneol=native#text/plain
res/cardsfolder/cunning_sparkmage.txt -text svneol=native#text/plain

View File

@@ -3,7 +3,6 @@ ManaCost:2 R
Types:Sorcery
Text:no text
A:SP$ GainControl | Cost$ 2 R | ValidTgts$ Creature | TgtPrompt$ Select target creature | LoseControl$ EOT | Untap$ True | AddKWs$ Haste | SpellDescription$ Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn.
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/act_of_treason.jpg
SetInfo:M11|Common|http://magiccards.info/scans/en/m11/121.jpg

View File

@@ -4,8 +4,7 @@ Types:Instant
Text:no text
A:SP$ Destroy | Cost$ 1 W | ValidTgts$ Enchantment | TgtPrompt$ Select target enchantment | SpellDescription$ Destroy target enchantment.
SVar:Buyback:3
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/allay.jpg
SetInfo:EXO|Common|http://magiccards.info/scans/en/ex/1.jpg
End
End

View File

@@ -3,7 +3,6 @@ ManaCost:G
Types:Instant
Text:no text
A:SP$ PutCounter | Cost$ G | ValidTgts$ Creature | TgtPrompt$ Select target creature | CounterType$ P1P1 | CounterNum$ 1 | SpellDescription$ Put a +1/+1 counter on target creature.
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/battlegrowth.jpg
SetInfo:MRD|Common|http://magiccards.info/scans/en/mi/113.jpg

View File

@@ -3,7 +3,6 @@ ManaCost:4 U U U
Types:Sorcery
Text:no text
A:SP$ GainControl | Cost$ 4 U U U | ValidTgts$ Permanent.YouDontCtrl | TgtPrompt$ Select target permanent opponent controls. | SpellDescription$ For each opponent, gain control of target permanent that player controls. (This effect lasts indefinitely.)
SVar:PlayMain1:TRUE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/blatant_thievery.jpg
SetInfo:ONS|Rare|http://magiccards.info/scans/en/on/71.jpg

View File

@@ -3,7 +3,6 @@ ManaCost:3 R
Types:Instant Arcane
Text:no text
A:SP$ GainControl | Cost$ 3 R | ValidTgts$ Creature.nonLegendary | TgtPrompt$ Select target nonlegendary creature. | LoseControl$ EOT | Untap$ True | AddKWs$ Haste | SpellDescription$ Untap target nonlegendary creature and gain control of it until end of turn. That creature gains haste until end of turn.
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/blind_with_anger.jpg
SetInfo:CHK|Uncommon|http://magiccards.info/scans/en/chk/158.jpg

View File

@@ -2,9 +2,9 @@ Name:Call to Glory
ManaCost:1 W
Types:Instant
Text:no text
A:SP$ UntapAll | Cost$ 1 W | ValidCards$ Creature.YouCtrl | SpellDescription$ Untap all creatures you control. Samurai creatures you control get +1/+1 until end of turn. | SubAbility$ SVar=DBPumpYourSamurai
A:SP$ UntapAll | Cost$ 1 W | ValidCards$ Creature.YouCtrl | SpellDescription$ Untap all creatures you control. Samurai creatures you control get +1/+1 until end of turn. | SubAbility$ SVar=DBPumpYourSamurai
SVar:DBPumpYourSamurai:DB$ PumpAll | ValidCards$ Creature.Samurai+YouCtrl | NumAtt$+1 | NumDef$ +1
SVar:PlayMain1:TRUE
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/call_to_glory.jpg
SetInfo:CHK|Common|http://magiccards.info/scans/en/chk/4.jpg

View File

@@ -4,8 +4,6 @@ Types:Instant
Text:no text
A:SP$ ChangeZone | Cost$ 1 U U | ValidTgts$ Permanent | TgtPrompt$ Select target permanent | Origin$ Battlefield | Destination$ Hand | SpellDescription$ Return target permanent to its owner's hand.
SVar:Buyback:3
SVar:RemAIDeck:True
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/capsize.jpg
SetInfo:TMP|Common|http://magiccards.info/scans/en/tp/55.jpg

View File

@@ -1,7 +1,12 @@
Name:Chalice of the Void
ManaCost:X X 0
ManaCost:X X
Types:Artifact
Text:Chalice of the Void enters the battlefield with X charge counters on it.\r\nWhenever a player casts a spell with converted mana cost equal to the number of charge counters on Chalice of the Void, counter that spell.
Text:no text
K:etbCounter:CHARGE:X
T:Mode$ SpellCast | ValidCard$ Card.cmcEQY | ValidActivatingPlayer$ Each | TriggerZones$ Battlefield | Execute$ TrigCounter | TriggerDescription$ Whenever a player casts a spell with converted mana cost equal to the number of charge counters on CARDNAME, counter that spell.
SVar:TrigCounter:AB$Counter | Cost$ 0 | Defined$ TriggeredSpellAbility
SVar:X:Count$xPaid
SVar:Y:Count$CardCounters.CHARGE
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/chalice_of_the_void.jpg

View File

@@ -1,11 +1,11 @@
Name:Change of Heart
ManaCost:W
Types:Instant
Text:no text
A:SP$ Pump | Cost$ W | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ HIDDEN CARDNAME can't attack. | IsCurse$ True | SpellDescription$ Target creature can't attack this turn.
SVar:Buyback:3
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/change_of_heart.jpg
SetInfo:STH|Common|http://magiccards.info/scans/en/sh/103.jpg
Name:Change of Heart
ManaCost:W
Types:Instant
Text:no text
A:SP$ Pump | Cost$ W | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ HIDDEN CARDNAME can't attack. | IsCurse$ True | SpellDescription$ Target creature can't attack this turn.
SVar:Buyback:3
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/change_of_heart.jpg
SetInfo:STH|Common|http://magiccards.info/scans/en/sh/103.jpg
End

View File

@@ -1,15 +1,14 @@
Name:Cunning
ManaCost:1 U
Types:Enchantment Aura
Text:no text
K:Enchant creature
K:enPump:+3/+3
T:Mode$ Attacks | ValidCard$ Card.AttachedBy | TriggerZones$ Battlefield | DelayedTrigger$ DelayedTrig | TriggerDescription$ When enchanted creature attacks or blocks, sacrifice CARDNAME at the beginning of the next cleanup step.
T:Mode$ Blocks | ValidCard$ Card.AttachedBy | TriggerZones$ Battlefield| DelayedTrigger$ DelayedTrig | Secondary$ True | TriggerDescription$ When enchanted creature attacks or blocks, sacrifice CARDNAME at the beginning of the next cleanup step.
SVar:DelayedTrig:Mode$ Phase | Phase$ Cleanup | ValidPlayer$ Each | Execute$ TrigSac | TriggerDescription$ Sacrifice CARDNAME.
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cunning.jpg
SetInfo:EXO|Common|http://magiccards.info/scans/en/ex/28.jpg
Name:Cunning
ManaCost:1 U
Types:Enchantment Aura
Text:no text
K:Enchant creature
K:enPump:+3/+3
T:Mode$ Attacks | ValidCard$ Card.AttachedBy | TriggerZones$ Battlefield | DelayedTrigger$ DelayedTrig | TriggerDescription$ When enchanted creature attacks or blocks, sacrifice CARDNAME at the beginning of the next cleanup step.
T:Mode$ Blocks | ValidCard$ Card.AttachedBy | TriggerZones$ Battlefield| DelayedTrigger$ DelayedTrig | Secondary$ True | TriggerDescription$ When enchanted creature attacks or blocks, sacrifice CARDNAME at the beginning of the next cleanup step.
SVar:DelayedTrig:Mode$ Phase | Phase$ Cleanup | ValidPlayer$ Each | Execute$ TrigSac | TriggerDescription$ Sacrifice CARDNAME.
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cunning.jpg
SetInfo:EXO|Common|http://magiccards.info/scans/en/ex/28.jpg
End

View File

@@ -4,7 +4,6 @@ Types:Sorcery
Text:no text
A:SP$ Destroy | Cost$ 4 B B | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonblack creature | SubAbility$ SVar=DBGainLife | SpellDescription$ Destroy target nonblack creature. You gain 3 life.
SVar:DBGainLife:DB$GainLife | LifeAmount$ 3
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
SVar:Picture:http://serv2.tcgimages.eu/img/cards/Portal_Second_Age/dark_offering.jpg
SetInfo:PO2|Uncommon|http://magiccards.info/scans/en/po2/12.jpg

View File

@@ -4,7 +4,6 @@ Types:Instant
Text:no text
A:SP$ Destroy | Cost$ 3 B Sac<1/Creature> | ValidTgts$ Creature.nonBlack | NoRegen$ True | TgtPrompt$ Select target nonblack creature | SubAbility$ SVar=DBDrain | SpellDescription$ Destroy target nonblack creature. It can't be regenerated. Its controller loses 2 life.
SVar:DBDrain:DB$LoseLife | Defined$ TargetedController | LifeAmount$ 2
SVar:PlayMain1:TRUE
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/death_bomb.jpg

View File

@@ -5,8 +5,7 @@ Text:no text
A:SP$ Destroy | Cost$ B B | ValidTgts$ Creature | TgtPrompt$ Select target creature | NoRegen$ True | SubAbility$ SVar=DBLoseLife | SpellDescription$ Destroy target creature. It can't be regenerated. You lose life equal to that creature's toughness.
SVar:DBLoseLife:DB$LoseLife | Defined$ You | LifeAmount$ X
SVar:X:Targeted$CardToughness
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
SVar:Picture:http://resources.wizards.com/magic/cards/5dn/en-us/card50210.jpg
SetInfo:5DN|Uncommon|http://magiccards.info/scans/en/5dn/46.jpg
End
End

View File

@@ -5,7 +5,6 @@ Text:no text
A:SP$ Destroy | Cost$ 1 W | ValidTgts$ Artifact | TgtPrompt$ Select target artifact | SubAbility$ SVar=DBGainLife | SpellDescription$ Destroy target artifact. You gain life equal to its converted mana cost.
SVar:DBGainLife:DB$GainLife | Defined$ You | LifeAmount$ X
SVar:X:Targeted$CardManaCost
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/divine_offering.jpg
SetInfo:MIR|Common|http://magiccards.info/scans/en/mr/215.jpg

View File

@@ -3,6 +3,7 @@ ManaCost:3 G
Types:Enchantment
Text:no text
K:stPumpAll:Creature.Land:2/2:No Condition:Each land gets +2/+2 as long as it's a creature.
SVar:RemRandomDeck:True
SVar:PlayMain1:TRUE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/earth_surge.jpg

View File

@@ -3,8 +3,7 @@ ManaCost:R
Types:Sorcery
Text:no text
A:SP$ DealDamage | Cost$ R | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ 4 | SpellDescription$ Flame Slash deals 4 damage to target creature.
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/flame_slash.jpg
SetInfo:ROE|Common|http://magiccards.info/scans/en/roe/145.jpg
End
End

View File

@@ -117,7 +117,7 @@ public class GameActionUtil {
playCard_Ripple(c);
playCard_Storm(sa);
playCard_Chalice_of_the_Void(c);
//playCard_Chalice_of_the_Void(c);
playCard_Vengevine(c);
playCard_Demigod_of_Revenge(c);
playCard_Standstill(c);

View File

@@ -279,7 +279,12 @@ public class AbilityFactory_Counters {
if (!(type.equals("P1P1") || type.equals("ICE")) && r.nextFloat() < .1 * currCounters)
return false;
}
//Don't use non P1P1/M1M1 counters before main 2 if possible
if(AllZone.Phase.isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases")
&& !(type.equals("P1P1") || type.equals("M1M1")) )
return false;
Ability_Sub subAb = sa.getSubAbility();
if (subAb != null)
chance &= subAb.chkAI_Drawback();

View File

@@ -1365,7 +1365,7 @@ public class CardFactory implements NewConstants {
}//*************** END ************ END **************************
/*
//*************** START *********** START **************************
else if(cardName.equals("Chalice of the Void")) {
Command intoPlay = new Command() {
@@ -1378,7 +1378,7 @@ public class CardFactory implements NewConstants {
};
card.addComesIntoPlayCommand(intoPlay);
}//*************** END ************ END **************************
*/
//*************** START *********** START **************************
else if (cardName.equals("Aluren")) {