mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Added Twinning Glass.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
9
res/cardsfolder/t/twinning_glass.txt
Normal file
9
res/cardsfolder/t/twinning_glass.txt
Normal 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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user