added SecondSpellCastThisTurn property. added Second Guess

This commit is contained in:
ArsenalNut
2012-05-02 14:40:02 +00:00
parent 2218af1a31
commit 958c7b73e9
3 changed files with 20 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -7929,6 +7929,7 @@ res/cardsfolder/s/seat_of_the_synod.txt svneol=native#text/plain
res/cardsfolder/s/secluded_glen.txt svneol=native#text/plain
res/cardsfolder/s/secluded_steppe.txt svneol=native#text/plain
res/cardsfolder/s/second_chance.txt svneol=native#text/plain
res/cardsfolder/s/second_guess.txt -text
res/cardsfolder/s/second_sight.txt svneol=native#text/plain
res/cardsfolder/s/second_sunrise.txt -text
res/cardsfolder/s/second_thoughts.txt svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Second Guess
ManaCost:1 U
Types:Instant
Text:no text
A:SP$ Counter | Cost$ 1 U | TargetType$ Spell | TgtPrompt$ Select second spell cast this turn. | ValidTgts$ Spell.SecondSpellCastThisTurn | SpellDescription$ Counter target spell that's the second spell cast this turn.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/second_guess.jpg
SetInfo:AVR|Uncommon|http://magiccards.info/scans/en/avr/74.jpg
Oracle:Counter target spell that's the second spell cast this turn.
End

View File

@@ -6707,6 +6707,15 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
} else if (property.startsWith("SecondSpellCastThisTurn")) {
final CardList list = CardUtil.getThisTurnCast("Card", source);
if (list.size() < 2) {
return false;
}
else if (list.get(1) != this) {
return false;
}
} else if (property.startsWith("sharesTypeWith")) {
if (!this.sharesTypeWith(source)) {
return false;