- Added Twinning Glass.

This commit is contained in:
jeffwadsworth
2012-03-20 21:46:22 +00:00
parent 8263d6bf30
commit 3822c68746
3 changed files with 25 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -9529,6 +9529,7 @@ res/cardsfolder/t/twilight_mire.txt svneol=native#text/plain
res/cardsfolder/t/twilight_shepherd.txt -text
res/cardsfolder/t/twinblade_slasher.txt svneol=native#text/plain
res/cardsfolder/t/twincast.txt svneol=native#text/plain
res/cardsfolder/t/twinning_glass.txt -text svneol=unset#text/plain
res/cardsfolder/t/twinstrike.txt -text
res/cardsfolder/t/twisted_abomination.txt svneol=native#text/plain
res/cardsfolder/t/twisted_experiment.txt svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Twinning Glass
ManaCost:4
Types:Artifact
Text:no text
A:AB$ Play | Cost$ 1 T | Valid$ Card.nonLand+sharesNameWith ThisTurnCast | ValidZone$ Hand | Controller$ You | WithoutManaCost$ True | Optional$ True | SpellDescription$ You may cast a nonland card from your hand without paying its mana cost if it has the same name as a spell that was cast this turn.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/twinning_glass.jpg
End

View File

@@ -6997,7 +6997,22 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!shares) {
return false;
}
} else if (restriction.equals("ThisTurnCast")) {
final CardList list = CardUtil.getThisTurnCast("Card", source);
if (list.isEmpty()) {
return false;
}
boolean shares = false;
for (final Card card : list) {
if (this.getName().equals(card.getName())) {
shares = true;
}
}
if (!shares) {
return false;
}
}
} else if (property.startsWith("sharesTypeWith")) {
if (!this.sharesTypeWith(source)) {
return false;