- Fixed resetCardColor crashing on face down cards.

This commit is contained in:
Sloth
2013-02-28 07:55:46 +00:00
parent efd91976f0
commit 55f2d9921f
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ K:Flash
K:Enchant creature
A:SP$ Attach | Cost$ 2 R | ValidTgts$ Creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Creature.wasDealtDamageByEnchantedThisTurn | AddHiddenKeyword$ If CARDNAME would be put into a graveyard, exile it instead. | Description$ If a creature dealt damage by enchanted creature this turn would die, exile it instead.
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/kumanos_blessing.jpg
SetInfo:BOK|Common|http://magiccards.info/scans/en/bok/111.jpg
Oracle:Flash\nEnchant creature\nIf a creature dealt damage by enchanted creature this turn would die, exile it instead.

View File

@@ -136,7 +136,9 @@ public class CardCharacteristics {
* Resets the card color.
*/
public final void resetCardColor() {
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
if (!this.cardColor.isEmpty()) {
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
}
}
/**