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