- [XLN] Jace, Cunning Castaway: the clones should be immediately activatable as soon as they hit the battlefield.

This commit is contained in:
Agetian
2017-08-28 19:26:54 +00:00
parent 240a898fe5
commit fb0acb6a8b
2 changed files with 11 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ public class CopyPermanentEffect extends SpellAbilityEffect {
final List<String> triggers = Lists.newArrayList();
final List<String> pumpKeywords = Lists.newArrayList();
boolean asNonLegendary = false;
boolean resetActivations = false;
final long timestamp = game.getNextTimestamp();
@@ -88,6 +89,9 @@ public class CopyPermanentEffect extends SpellAbilityEffect {
if (sa.hasParam("NonLegendary")) {
asNonLegendary = true;
}
if (sa.hasParam("ResetAbilityActivations")) {
resetActivations = true;
}
if (sa.hasParam("AddSVars")) {
svars.addAll(Arrays.asList(sa.getParam("AddSVars").split(" & ")));
}
@@ -329,6 +333,12 @@ public class CopyPermanentEffect extends SpellAbilityEffect {
copy.removeIntrinsicKeyword("Devoid");
}
if (resetActivations) {
for (SpellAbility ab : copy.getSpellAbilities()) {
ab.getRestrictions().resetTurnActivations();
}
}
copy.updateStateForView();
// Temporarily register triggers of an object created with CopyPermanent