mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- [XLN] Jace, Cunning Castaway: the clones should be immediately activatable as soon as they hit the battlefield.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user