- Re-added the color fix for Fork (without the NPEs this time)

This commit is contained in:
moomarc
2012-09-10 09:43:12 +00:00
parent ff27c9035c
commit 2990b4fc62

View File

@@ -162,7 +162,9 @@ public class CardFactory implements CardFactoryInterface {
final Card c = AllZone.getCardFactory().copyCard(original);
// change the color of the copy (eg: Fork)
/*final SpellAbility sourceSA = source.getFirstSpellAbility();
// Currently won't work for abilities, only for spells
if (null != source.getFirstSpellAbility().getAbilityFactory()) {
final SpellAbility sourceSA = source.getFirstSpellAbility();
if (sourceSA.getAbilityFactory().getMapParams().containsKey("CopyIsColor")) {
String tmp = "";
final HashMap<String, String> params = sourceSA.getAbilityFactory().getMapParams();
@@ -175,7 +177,8 @@ public class CardFactory implements CardFactoryInterface {
final String finalColors = tmp;
c.addColor(finalColors, c, !params.containsKey("OverwriteColors"), true);
}*/
}
}
c.addController(controller);
c.setCopiedSpell(true);