mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
added SecondSpellCastThisTurn property. added Second Guess
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_glen.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/secluded_steppe.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_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_sight.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/second_sunrise.txt -text
|
res/cardsfolder/s/second_sunrise.txt -text
|
||||||
res/cardsfolder/s/second_thoughts.txt svneol=native#text/plain
|
res/cardsfolder/s/second_thoughts.txt svneol=native#text/plain
|
||||||
|
|||||||
10
res/cardsfolder/s/second_guess.txt
Normal file
10
res/cardsfolder/s/second_guess.txt
Normal 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
|
||||||
@@ -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")) {
|
} else if (property.startsWith("sharesTypeWith")) {
|
||||||
if (!this.sharesTypeWith(source)) {
|
if (!this.sharesTypeWith(source)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user