- When cards move to a non-Battlefield zone, reset it to its base colors

- Added Deathlace
This commit is contained in:
Sol
2013-02-22 22:37:08 +00:00
parent 5c839e4c8b
commit d2361e87b8
4 changed files with 26 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -2409,6 +2409,7 @@ res/cardsfolder/d/deathgazer.txt svneol=native#text/plain
res/cardsfolder/d/deathgreeter.txt svneol=native#text/plain
res/cardsfolder/d/deathgrip.txt svneol=native#text/plain
res/cardsfolder/d/deathknell_kami.txt svneol=native#text/plain
res/cardsfolder/d/deathlace.txt -text
res/cardsfolder/d/deathless_angel.txt svneol=native#text/plain
res/cardsfolder/d/deathmark.txt svneol=native#text/plain
res/cardsfolder/d/deathmark_prelate.txt svneol=native#text/plain

View File

@@ -0,0 +1,14 @@
Name:Deathlace
ManaCost:B
Types:Instant
A:SP$ Animate | Cost$ B | Colors$ Black | OverwriteColors$ True | ValidTgts$ Card | TgtZone$ Stack,Battlefield | Permanent$ True | SpellDescription$ Target spell or permanent becomes black. (Mana symbols on that permanent remain unchanged.)
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/deathlace.jpg
SVar:RemAIDeck:True
SetInfo:LEA|Rare|http://magiccards.info/scans/en/al/10.jpg
SetInfo:LEB|Rare|http://magiccards.info/scans/en/be/10.jpg
SetInfo:3ED|Rare|http://magiccards.info/scans/en/rv/10.jpg
SetInfo:4ED|Rare|http://magiccards.info/scans/en/4e/15.jpg
SetInfo:2ED|Rare|http://magiccards.info/scans/en/un/10.jpg
Oracle:Target spell or permanent becomes black. (Mana symbols on that permanent remain unchanged.)
End

View File

@@ -129,6 +129,13 @@ public class CardCharacteristics {
public final void setCardColor(final Iterable<CardColor> cardColor0) {
this.cardColor = Lists.newArrayList(cardColor0);
}
/**
* Resets the card color.
*/
public final void resetCardColor() {
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
}
/**
* Gets the base attack.

View File

@@ -243,6 +243,10 @@ public class GameAction {
(!zoneTo.is(ZoneType.Battlefield) && !c.getName().equals("Skullbriar, the Walking Grave"))) {
copied.clearCounters();
}
if (!zoneTo.is(ZoneType.Battlefield)) {
copied.getCharacteristics().resetCardColor();
}
if (zoneFrom.is(ZoneType.Battlefield)) {
copied.setSuspendCast(false);