mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
update clone and copy effect
This commit is contained in:
@@ -199,6 +199,8 @@ public class CloneEffect extends SpellAbilityEffect {
|
||||
if (sa.hasParam("RememberCloneOrigin")) {
|
||||
tgtCard.addRemembered(cardToCopy);
|
||||
}
|
||||
// spire
|
||||
tgtCard.setChosenColorSpire(cardToCopy.getChosenColorSpire());
|
||||
|
||||
game.fireEvent(new GameEventCardStatsChanged(tgtCard));
|
||||
}
|
||||
|
||||
@@ -318,6 +318,8 @@ public class CopyPermanentEffect extends TokenEffectBase {
|
||||
copy.setState(copy.getCurrentStateName(), true, true);
|
||||
}
|
||||
}
|
||||
// spire
|
||||
copy.setChosenColorSpire(original.getChosenColorSpire());
|
||||
|
||||
copy.setTokenSpawningAbility(sa);
|
||||
copy.setGamePieceType(GamePieceType.TOKEN);
|
||||
|
||||
@@ -2119,7 +2119,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
|
||||
public boolean hasChosenColor(String s) {
|
||||
return chosenColors != null && chosenColors.contains(s);
|
||||
}
|
||||
public final Iterable<String> getChosenColorSpire() {
|
||||
public final List<String> getChosenColorSpire() {
|
||||
if (chosenColorSpire == null) {
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user