mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Teferi's Response (from Invasion)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
10
res/cardsfolder/teferis_response.txt
Normal file
10
res/cardsfolder/teferis_response.txt
Normal 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
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user