- Added Thran Turbine

This commit is contained in:
moomarc
2013-06-03 09:47:34 +00:00
parent 45a8f65d79
commit 7a09e9abb2
3 changed files with 16 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -11231,6 +11231,7 @@ res/cardsfolder/t/thran_golem.txt svneol=native#text/plain
res/cardsfolder/t/thran_lens.txt svneol=native#text/plain
res/cardsfolder/t/thran_quarry.txt svneol=native#text/plain
res/cardsfolder/t/thran_tome.txt -text
res/cardsfolder/t/thran_turbine.txt -text
res/cardsfolder/t/thran_war_machine.txt svneol=native#text/plain
res/cardsfolder/t/thran_weaponry.txt -text svneol=unset#text/plain
res/cardsfolder/t/thrashing_mossdog.txt -text

View File

@@ -0,0 +1,11 @@
Name:Thran Turbine
ManaCost:1
Types:Artifact
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | OptionalDecider$ You | TriggerZones$ Battlefield | Execute$ ChooseAmount | TriggerDescription$ At the beginning of your upkeep, you may add 1 or 2 to your mana pool. You can't spend this mana to cast spells.
SVar:ChooseAmount:DB$ ChooseNumber | Min$ 0 | Max$ 2 | ListTitle$ Choose the amount of mana | SubAbility$ DBMana
SVar:DBMana:DB$ Mana | Amount$ X | References$ X | Produced$ 1 | RestrictValid$ nonSpell
SVar:X:Count$ChosenNumber
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/thran_turbine.jpg
Oracle:At the beginning of your upkeep, you may add {1} or {2} to your mana pool. You can't spend this mana to cast spells.
SetInfo:USG Uncommon

View File

@@ -175,6 +175,10 @@ public class AbilityManaPart implements java.io.Serializable {
// Loop over restrictions
for (String restriction : this.manaRestrictions.split(",")) {
if (restriction.equals("nonSpell")) {
return !sa.isSpell();
}
if (restriction.startsWith("CostContainsX")) {
if (sa.isXCost()) {
return true;