mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Commented out the color replacement fix for Fork. Caused NPE for CopySpell Abilities.
This commit is contained in:
@@ -162,7 +162,7 @@ public class CardFactory implements CardFactoryInterface {
|
|||||||
final Card c = AllZone.getCardFactory().copyCard(original);
|
final Card c = AllZone.getCardFactory().copyCard(original);
|
||||||
|
|
||||||
// change the color of the copy (eg: Fork)
|
// change the color of the copy (eg: Fork)
|
||||||
final SpellAbility sourceSA = source.getFirstSpellAbility();
|
/*final SpellAbility sourceSA = source.getFirstSpellAbility();
|
||||||
if (sourceSA.getAbilityFactory().getMapParams().containsKey("CopyIsColor")) {
|
if (sourceSA.getAbilityFactory().getMapParams().containsKey("CopyIsColor")) {
|
||||||
String tmp = "";
|
String tmp = "";
|
||||||
final HashMap<String, String> params = sourceSA.getAbilityFactory().getMapParams();
|
final HashMap<String, String> params = sourceSA.getAbilityFactory().getMapParams();
|
||||||
@@ -175,7 +175,7 @@ public class CardFactory implements CardFactoryInterface {
|
|||||||
final String finalColors = tmp;
|
final String finalColors = tmp;
|
||||||
|
|
||||||
c.addColor(finalColors, c, !params.containsKey("OverwriteColors"), true);
|
c.addColor(finalColors, c, !params.containsKey("OverwriteColors"), true);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
c.addController(controller);
|
c.addController(controller);
|
||||||
c.setCopiedSpell(true);
|
c.setCopiedSpell(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user