- Reorganized Conditions of static abilities (WIP).

This commit is contained in:
Sloth
2012-11-24 12:19:43 +00:00
parent 580b0263fa
commit e896c91159
30 changed files with 49 additions and 46 deletions

View File

@@ -3,7 +3,7 @@ ManaCost:W
Types:Creature Human Soldier
Text:no text
PT:1/1
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Metalcraft$ True | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/ardent_recruit.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:W W
Types:Creature Human Soldier
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Double Strike | Metalcraft$ True | Description$ Metalcraft - CARDNAME has double strike as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Double Strike | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME has double strike as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/auriok_edgewright.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:1 W
Types:Creature Human Soldier
Text:no text
PT:1/1
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | AddKeyword$ Flying | Metalcraft$ True | Description$ Metalcraft - As long as you control three or more artifacts, CARDNAME gets +2/+2 and has flying.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | AddKeyword$ Flying | Condition$ Metalcraft | Description$ Metalcraft - As long as you control three or more artifacts, CARDNAME gets +2/+2 and has flying.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/auriok_sunchaser.jpg

View File

@@ -3,7 +3,8 @@ ManaCost:1 G
Types:Creature Elf Artificer
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Metalcraft$ True | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/carapace_forger.jpg
SetInfo:SOM|Common|http://magiccards.info/scans/en/som/114.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:4
Types:Artifact Creature Horse
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Metalcraft$ True | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/chrome_steed.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:3 B
Types:Creature Human Rogue
Text:no text
PT:4/1
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Shadow | Hellbent$ True | Description$ Hellbent - CARDNAME has shadow as long as you have no cards in hand. (It can block or be blocked by only creatures with shadow.)
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Shadow | Condition$ Hellbent | Description$ Hellbent - CARDNAME has shadow as long as you have no cards in hand. (It can block or be blocked by only creatures with shadow.)
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cutthroat_il_dal.jpg
SetInfo:FUT|Common|http://magiccards.info/scans/en/fut/64.jpg

View File

@@ -4,7 +4,7 @@ Types:Creature Imp
Text:no text
PT:2/2
K:Flying
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 1 | Hellbent$ True | Description$ Hellbent - CARDNAME gets +2/+1 as long as you have no cards in hand.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 1 | Condition$ Hellbent | Description$ Hellbent - CARDNAME gets +2/+1 as long as you have no cards in hand.
SVar:BuffedBy:Card
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/demons_jester.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:3
Types:Artifact Creature Soldier
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Protection from white & Protection from blue & Protection from black & Protection from red & Protection from green | Metalcraft$ True | Description$ Metalcraft - CARDNAME has protection from all colors as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Protection from white & Protection from blue & Protection from black & Protection from red & Protection from green | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME has protection from all colors as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/etched_champion.jpg

View File

@@ -3,7 +3,8 @@ ManaCost:2 G G
Types:Creature Elf Warrior
Text:no text
PT:4/4
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 4 | AddToughness$ 4 | AddKeyword$ Trample | Metalcraft$ True | Description$ Metalcraft - As long as you control three or more artifacts, CARDNAME gets +4/+4 and has trample.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 4 | AddToughness$ 4 | AddKeyword$ Trample | Condition$ Metalcraft | Description$ Metalcraft - As long as you control three or more artifacts, CARDNAME gets +4/+4 and has trample.
SVar:BuffedBy:Artifact
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/ezuris_brigade.jpg
SetInfo:SOM|Rare|http://magiccards.info/scans/en/som/121.jpg

View File

@@ -4,7 +4,7 @@ Types:Creature Human Warrior
Text:no text
PT:3/3
K:Morph:Discard<1/Card>
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Hellbent$ True | CheckSVar$ X | SVarCompare$ EQ1 | Description$ Hellbent - CARDNAME gets +2/+2 as long as you have no cards in hand.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Condition$ Hellbent | CheckSVar$ X | SVarCompare$ EQ1 | Description$ Hellbent - CARDNAME gets +2/+2 as long as you have no cards in hand.
SVar:X:Count$Valid Card.Self+faceUp
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/gathan_raiders.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:3 W
Types:Creature Elephant Soldier
Text:no text
PT:2/4
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Metalcraft$ True | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/ghalmas_warden.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:4 B B
Types:Enchantment
Text:no text
K:Madness:2 B B
S:Mode$ Continuous | Affected$ You | Hellbent$ True | AddKeyword$ Skip your upkeep step. | Description$ Hellbent - Skip your upkeep step if you have no cards in hand.
S:Mode$ Continuous | Affected$ You | Condition$ Hellbent | AddKeyword$ Skip your upkeep step. | Description$ Hellbent - Skip your upkeep step if you have no cards in hand.
T:Mode$ Phase | Phase$ Upkeep | Execute$ TrigLoseLifeDiscard | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of each player's upkeep, that player loses 1 life and discards a card.
SVar:TrigLoseLifeDiscard:AB$LoseLife | Cost$ 0 | Defined$ TriggeredPlayer | LifeAmount$ 1 | SubAbility$ DBDiscard
SVar:DBDiscard:DB$Discard | Defined$ TriggeredPlayer | NumCards$ 1 | Mode$ TgtChoose

View File

@@ -3,7 +3,7 @@ ManaCost:B R
Types:Creature Rat
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 1 | AddAbility$ Pump | Hellbent$ True | Description$ Hellbent - As long as you have no cards in hand, CARDNAME gets +1/+0 and has "B: Regenerate CARDNAME."
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 1 | AddAbility$ Pump | Condition$ Hellbent | Description$ Hellbent - As long as you have no cards in hand, CARDNAME gets +1/+0 and has "B: Regenerate CARDNAME."
SVar:Pump:AB$ Regenerate | Cost$ B | SpellDescription$ Regenerate CARDNAME.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/gobhobbler_rats.jpg

View File

@@ -4,7 +4,7 @@ Types:Creature Angel
Text:no text
PT:4/4
K:Flying
S:Mode$ Continuous | Affected$ Artifact.YouCtrl | AddKeyword$ Shroud | Metalcraft$ True | Description$ Metalcraft - Artifacts you control have shroud as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Artifact.YouCtrl | AddKeyword$ Shroud | Condition$ Metalcraft | Description$ Metalcraft - Artifacts you control have shroud as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/indomitable_archangel.jpg

View File

@@ -4,7 +4,7 @@ Types:Legendary Creature Human Warrior
Text:no text
PT:5/4
K:First Strike
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddPower$ 3 | Metalcraft$ True | Description$ Metalcraft - Creatures you control get +3/+0 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddPower$ 3 | Condition$ Metalcraft | Description$ Metalcraft - Creatures you control get +3/+0 as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:PlayMain1:TRUE
SVar:Rarity:Rare

View File

@@ -5,7 +5,7 @@ Text:no text
PT:2/2
T:Mode$ ChangesZone | ValidCard$ Equipment.YouCtrl | Origin$ Any | Destination$ Battlefield | Execute$ TrigDraw | TriggerZones$ Battlefield | OptionalDecider$ You | TriggerDescription$ Whenever an Equipment enters the battlefield under your control, you may draw a card.
SVar:TrigDraw:AB$ Draw | Cost$ 0 | NumCards$ 1
S:Mode$ Continuous | Affected$ Equipment.YouCtrl | AddAbility$ ABAttach | Metalcraft$ True | Description$ Metalcraft - Equipment you control have equip 0 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Equipment.YouCtrl | AddAbility$ ABAttach | Condition$ Metalcraft | Description$ Metalcraft - Equipment you control have equip 0 as long as you control three or more artifacts.
SVar:ABAttach:AB$ Attach | Cost$ 0 | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | SorcerySpeed$ True | PrecostDesc$ Equip - | SpellDescription$ Attach CARDNAME to target creature you control.
SVar:Rarity:Rare
SVar:Picture:http://serv4.tcgimages.eu/img/cards/New_Phyrexia/puresteel_paladin.jpg

View File

@@ -5,7 +5,7 @@ Text:no text
PT:3/3
A:AB$ Pump | Cost$ R R | KW$ Flying | SpellDescription$ CARDNAME gains flying until end of turn.
A:AB$ Pump | Cost$ R | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Double Strike | Hellbent$ True | Description$ Hellbent - CARDNAME has double strike as long as you have no cards in hand.
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Double Strike | Condition$ Hellbent | Description$ Hellbent - CARDNAME has double strike as long as you have no cards in hand.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/rakdos_pit_dragon.jpg
SetInfo:DIS|Rare|http://magiccards.info/scans/en/di/69.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:6
Types:Artifact Creature Rhino
Text:no text
PT:4/4
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Metalcraft$ True | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME gets +2/+2 as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/razorfield_rhino.jpg

View File

@@ -2,7 +2,8 @@ Name:Rusted Relic
ManaCost:4
Types:Artifact
Text:no text
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 5 | SetToughness$ 5 | AddType$ Artifact & Creature & Golem | Metalcraft$ True | Description$ Metalcraft - CARDNAME is a 5/5 Golem artifact creature as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 5 | SetToughness$ 5 | AddType$ Artifact & Creature & Golem | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME is a 5/5 Golem artifact creature as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/rusted_relic.jpg
SetInfo:SOM|Uncommon|http://magiccards.info/scans/en/som/199.jpg

View File

@@ -5,7 +5,7 @@ Text:no text
PT:0/1
K:Defender
A:AB$ Pump | Cost$ B | NumAtt$ +1 | NumDef$ +1 | SpellDescription$ CARDNAME gets +1/+1 until end of turn.
S:Mode$ Continuous | Affected$ Card.Self | AddHiddenKeyword$ HIDDEN CARDNAME can attack as though it didn't have defender. | Hellbent$ True | Description$ Hellbent - CARDNAME can attack as though it didn't have defender as long as you have no cards in hand.
S:Mode$ Continuous | Affected$ Card.Self | AddHiddenKeyword$ HIDDEN CARDNAME can attack as though it didn't have defender. | Condition$ Hellbent | Description$ Hellbent - CARDNAME can attack as though it didn't have defender as long as you have no cards in hand.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/slithering_shade.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:3
Types:Artifact Creature Construct
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Flying | Metalcraft$ True | Description$ Metalcraft - CARDNAME has flying as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Flying | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME has flying as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/snapsail_glider.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:2 R R
Types:Creature Human Berserker
Text:no text
PT:3/1
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Double Strike | Metalcraft$ True | Description$ Metalcraft - CARDNAME has double strike as long as you control three or more artifacts.
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Double Strike | Condition$ Metalcraft | Description$ Metalcraft - CARDNAME has double strike as long as you control three or more artifacts.
SVar:BuffedBy:Artifact
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/spiraling_duelist.jpg

View File

@@ -4,7 +4,7 @@ Types:Creature Serpent
Text:no text
PT:3/5
K:Defender
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | AddHiddenKeyword$ HIDDEN CARDNAME can attack as though it didn't have defender. | Metalcraft$ True | Description$ Metalcraft - As long as you control three or more artifacts, CARDNAME gets +2/+2 and can attack as though it didn't have defender.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 2 | AddToughness$ 2 | AddHiddenKeyword$ HIDDEN CARDNAME can attack as though it didn't have defender. | Condition$ Metalcraft | Description$ Metalcraft - As long as you control three or more artifacts, CARDNAME gets +2/+2 and can attack as though it didn't have defender.
SVar:BuffedBy:Artifact
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/spire_serpent.jpg

View File

@@ -5,7 +5,7 @@ Text:no text
K:Enchant creature
A:SP$ Attach | Cost$ R | ValidTgts$ Creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | Description$ Enchanted creature gets +2/+0.
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | Hellbent$ True | Description$ Hellbent - Enchanted creature gets an additional +2/+0 as long as you have no cards in hand.
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | Condition$ Hellbent | Description$ Hellbent - Enchanted creature gets an additional +2/+0 as long as you have no cards in hand.
SVar:BuffedBy:Card
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/taste_for_mayhem.jpg

View File

@@ -496,7 +496,19 @@ public class StaticAbility {
}
if (params.containsKey("Condition")) {
if (params.get("Condition").equals("PermanentOfEachColor")) {
if (params.get("Condition").equals("Threshold")) {
if (!controller.hasThreshold()) {
return false;
}
} else if (params.get("Condition").equals("Hellbent")) {
if (!controller.hasHellbent()) {
return false;
}
} else if (params.get("Condition").equals("Metalcraft")) {
if (!controller.hasMetalcraft()) {
return false;
}
} else if (params.get("Condition").equals("PermanentOfEachColor")) {
if ((controller.getColoredCardsInPlay(Constant.Color.BLACK).isEmpty()
|| controller.getColoredCardsInPlay(Constant.Color.BLUE).isEmpty()
|| controller.getColoredCardsInPlay(Constant.Color.GREEN).isEmpty()
@@ -508,20 +520,8 @@ public class StaticAbility {
if (controller.getLife() > 5) {
return false;
}
} else if (params.get("Condition").equals("Threshold")) {
if (!controller.hasThreshold()) {
return false;
}
}
}
if (this.params.containsKey("Hellbent") && !controller.hasHellbent()) {
return false;
}
if (this.params.containsKey("Metalcraft") && !controller.hasMetalcraft()) {
return false;
}
if (this.params.containsKey("PlayerTurn") && !Singletons.getModel().getGame().getPhaseHandler().isPlayerTurn(controller)) {
return false;