- Added Death Pits of Rath.

This commit is contained in:
jendave
2011-08-06 12:46:49 +00:00
parent 35bcd62075
commit 3e466a6cf5
6 changed files with 30 additions and 12 deletions

1
.gitattributes vendored
View File

@@ -1104,6 +1104,7 @@ res/cardsfolder/death_cultist.txt -text svneol=native#text/plain
res/cardsfolder/death_grasp.txt -text svneol=native#text/plain
res/cardsfolder/death_mutation.txt -text svneol=native#text/plain
res/cardsfolder/death_of_a_thousand_stings.txt -text svneol=native#text/plain
res/cardsfolder/death_pits_of_rath.txt -text svneol=native#text/plain
res/cardsfolder/death_speakers.txt -text svneol=native#text/plain
res/cardsfolder/death_stroke.txt -text svneol=native#text/plain
res/cardsfolder/death_ward.txt -text svneol=native#text/plain

View File

@@ -3,7 +3,7 @@ ManaCost:2 W
Types:Tribal Enchantment Rebel Aura
Text:Enchanted creature can't attack or block.
K:Enchant creature
K:enPumpCurse:CARDNAME can't attack or block.
K:enPumpCurse:HIDDEN CARDNAME can't attack or block.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/bound_in_silence.jpg
SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/20.jpg

View File

@@ -3,7 +3,7 @@ ManaCost:1 W
Types:Enchantment Aura
Text:Enchanted creature gets +2/+2 and can't attack.
K:Enchant creature
K:enPumpCurse:+2/+2/CARDNAME can't attack.
K:enPumpCurse:+2/+2/HIDDEN CARDNAME can't attack.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cagemail.jpg
SetInfo:JUD|Common|http://magiccards.info/scans/en/ju/7.jpg

View File

@@ -0,0 +1,9 @@
Name:Death Pits of Rath
ManaCost:3 B B
Types:Enchantment
Text:no text
K:stPumpAll:Creature:0/0/HIDDEN When CARDNAME is dealt damage, destroy it. It can't be regenerated.:No Condition:Whenever a creature is dealt damage, destroy it. It can't be regenerated.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/death_pits_of_rath.jpg
End

View File

@@ -5,7 +5,7 @@ Text:Enchanted creature can't attack.
K:Enchant creature
K:enPump:CARDNAME can't attack.
A:AB$Pump | Cost$ B | Defined$ Enchanted | NumAtt$ -1 | NumDef$ -1 | IsCurse$ True | SpellDescription$ Enchanted creature gets -1/-1 until end of turn.
A:AB$Pump | Cost$ R | Defined$ Enchanted | KW$ CARDNAME can't block. | IsCurse$ True | SpellDescription$ Enchanted creature can't block this turn.
A:AB$Pump | Cost$ R | Defined$ Enchanted | KW$ HIDDEN CARDNAME can't block. | IsCurse$ True | SpellDescription$ Enchanted creature can't block this turn.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/manacles_of_decay.jpg
End

View File

@@ -2948,18 +2948,26 @@ public class Card extends MyObservable {
AllZone.Stack.add(ability2);
}
if(getKeyword().contains("When CARDNAME is dealt damage, destroy it.")) {
if(hasStartOfKeyword("When CARDNAME is dealt damage, destroy it.")) {
final Card damagedCard = this;
final Ability ability = new Ability(source, "0") {
@Override
public void resolve() { AllZone.GameAction.destroy(damagedCard); }
};
final Ability ability2 = new Ability(source, "0") {
@Override
public void resolve() { AllZone.GameAction.destroyNoRegeneration(damagedCard); }
};
StringBuilder sb = new StringBuilder();
sb.append(damagedCard).append(" - destroy");
ability.setStackDescription(sb.toString());
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability);
if(this.getKeyword().contains("When CARDNAME is dealt damage, destroy it. It can't be regenerated."))
AllZone.Stack.add(ability2);
else AllZone.Stack.add(ability);
}
if(source.getKeyword().contains("Deathtouch") && this.isCreature()) AllZone.GameAction.destroy(this);