Added Runeflare Trap

Small Checkstyle fix
This commit is contained in:
moomarc
2012-01-16 05:33:40 +00:00
parent 3787c370d9
commit a10c5ea3eb
3 changed files with 17 additions and 3 deletions

1
.gitattributes vendored
View File

@@ -7027,6 +7027,7 @@ res/cardsfolder/r/runeclaw_bear.txt svneol=native#text/plain
res/cardsfolder/r/runed_arch.txt svneol=native#text/plain
res/cardsfolder/r/runed_servitor.txt svneol=native#text/plain
res/cardsfolder/r/runed_stalactite.txt svneol=native#text/plain
res/cardsfolder/r/runeflare_trap.txt -text
res/cardsfolder/r/runes_of_the_deus.txt svneol=native#text/plain
res/cardsfolder/r/runic_repetition.txt -text
res/cardsfolder/r/rupture.txt svneol=native#text/plain

View File

@@ -0,0 +1,13 @@
Name:Runeflare Trap
ManaCost:4 R R
Types:Instant Trap
Text:no text
A:SP$DealDamage | Cost$ R | ValidTgts$ Player | NumDmg$ X | CheckSVar$ Y | SVarCompare$ GE3 | SpellDescription$ If an opponent drew three or more cards this turn, you may pay R rather than pay CARDNAME's mana cost.
A:SP$DealDamage | Cost$ 4 R R | ValidTgts$ Player | NumDmg$ X | SpellDescription$ CARDNAME deals damage to target player equal to the number of cards in that player's hand.
SVar:X:TargetedPlayer$CardsInHand
SVar:Y:Count$OppDrewThisTurn
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/runeflare_trap.jpg
SetInfo:ZEN|Uncommon|http://magiccards.info/scans/en/zen/146.jpg
Oracle:If an opponent drew three or more cards this turn, you may pay {R} rather than pay Runeflare Trap's mana cost.\nRuneflare Trap deals damage to target player equal to the number of cards in that player's hand.
End

View File

@@ -2758,10 +2758,10 @@ public class CardFactoryUtil {
}
}
if(sq[0].equals("YouDrewThisTurn")) {
if (sq[0].equals("YouDrewThisTurn")) {
return CardFactoryUtil.doXMath(c.getController().getNumDrawnThisTurn(), m, c);
}
if(sq[0].equals("OppDrewThisTurn")) {
if (sq[0].equals("OppDrewThisTurn")) {
return CardFactoryUtil.doXMath(c.getController().getOpponent().getNumDrawnThisTurn(), m, c);
}