add Teferi's Response (from Invasion)

This commit is contained in:
jendave
2011-08-06 15:14:05 +00:00
parent 3af9b51360
commit 6b6533678a
3 changed files with 20 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -5135,6 +5135,7 @@ res/cardsfolder/tectonic_fiend.txt -text svneol=native#text/plain
res/cardsfolder/tectonic_instability.txt -text svneol=native#text/plain
res/cardsfolder/teekas_dragon.txt -text svneol=native#text/plain
res/cardsfolder/teferis_puzzle_box.txt -text svneol=native#text/plain
res/cardsfolder/teferis_response.txt -text svneol=native#text/plain
res/cardsfolder/tek.txt -text svneol=native#text/plain
res/cardsfolder/tel_jilad_archers.txt -text svneol=native#text/plain
res/cardsfolder/tel_jilad_chosen.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Teferi's Response
ManaCost:1 U
Types:Instant
Text:no text
A:SP$Counter | Cost$ 1 U | Type$ SpellOrAbility |DestroyPermanent$True| SpellTarget$ Land.YouCtrl | SpellDescription$ Counter target spell or ability an opponent controls that targets a land you control. If a permanent's ability is countered this way, destroy that permanent. Draw two cards.|SubAbility$SVar=DB
SVar:DB:DB$Draw | NumCards$ 2
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/hindering_light.jpg
SetInfo:ALA|Common|http://magiccards.info/scans/en/ala/173.jpg
End

View File

@@ -121,6 +121,7 @@ public class AbilityFactory_CounterMagic {
&& AllZone.Stack.contains(tgt[0])
&& !tgt[0].getSourceCard().keywordsContain("CARDNAME can't be countered.")) {
final SpellAbility tgtSA = tgt[0];
Card tgtSACard = tgtSA.getSourceCard();
System.out.println("Send countered spell to " + destination);
@@ -165,6 +166,10 @@ public class AbilityFactory_CounterMagic {
doExtraActions(tgtSA,sa);
}
if(tgtSA.isAbility() && params.containsKey("DestroyPermanent")) {
AllZone.GameAction.destroy(tgtSACard);
}
}
if (af.hasSubAbility()){
@@ -212,6 +217,10 @@ public class AbilityFactory_CounterMagic {
sb.append(tgt[0].getSourceCard().getName());
if(tgt[0].isAbility()) sb.append("'s ability.");
else sb.append(".");
if(tgt[0].isAbility() && params.containsKey("DestroyPermanent")) {
sb.append(" Destroy "+tgt[0].getSourceCard()).append(".");
}
Ability_Sub abSub = sa.getSubAbility();
if (abSub != null){