mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +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> triggers = Lists.newArrayList();
|
||||||
final List<String> pumpKeywords = Lists.newArrayList();
|
final List<String> pumpKeywords = Lists.newArrayList();
|
||||||
boolean asNonLegendary = false;
|
boolean asNonLegendary = false;
|
||||||
|
boolean resetActivations = false;
|
||||||
|
|
||||||
final long timestamp = game.getNextTimestamp();
|
final long timestamp = game.getNextTimestamp();
|
||||||
|
|
||||||
@@ -88,6 +89,9 @@ public class CopyPermanentEffect extends SpellAbilityEffect {
|
|||||||
if (sa.hasParam("NonLegendary")) {
|
if (sa.hasParam("NonLegendary")) {
|
||||||
asNonLegendary = true;
|
asNonLegendary = true;
|
||||||
}
|
}
|
||||||
|
if (sa.hasParam("ResetAbilityActivations")) {
|
||||||
|
resetActivations = true;
|
||||||
|
}
|
||||||
if (sa.hasParam("AddSVars")) {
|
if (sa.hasParam("AddSVars")) {
|
||||||
svars.addAll(Arrays.asList(sa.getParam("AddSVars").split(" & ")));
|
svars.addAll(Arrays.asList(sa.getParam("AddSVars").split(" & ")));
|
||||||
}
|
}
|
||||||
@@ -329,6 +333,12 @@ public class CopyPermanentEffect extends SpellAbilityEffect {
|
|||||||
copy.removeIntrinsicKeyword("Devoid");
|
copy.removeIntrinsicKeyword("Devoid");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resetActivations) {
|
||||||
|
for (SpellAbility ab : copy.getSpellAbilities()) {
|
||||||
|
ab.getRestrictions().resetTurnActivations();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
copy.updateStateForView();
|
copy.updateStateForView();
|
||||||
|
|
||||||
// Temporarily register triggers of an object created with CopyPermanent
|
// Temporarily register triggers of an object created with CopyPermanent
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ SVar:DBDiscard:DB$ Discard | Defined$ You | NumCards$ 1 | Mode$ TgtChoose
|
|||||||
A:AB$ Token | Cost$ SubCounter<2/LOYALTY> | Planeswalker$ True | TokenAmount$ 1 | TokenName$ Illusion | TokenTypes$ Creature,Illusion | TokenPower$ 2 | TokenToughness$ 2 | TokenOwner$ You | TokenColors$ Blue | TokenImage$ u 2 2 illusion XLN | TokenTriggers$ SacOnSpell | TokenSVars$ DoSac | SpellDescription$ Create a 2/2 blue Illusion token with "When this creature becomes the target of a spell, sacrifice it."
|
A:AB$ Token | Cost$ SubCounter<2/LOYALTY> | Planeswalker$ True | TokenAmount$ 1 | TokenName$ Illusion | TokenTypes$ Creature,Illusion | TokenPower$ 2 | TokenToughness$ 2 | TokenOwner$ You | TokenColors$ Blue | TokenImage$ u 2 2 illusion XLN | TokenTriggers$ SacOnSpell | TokenSVars$ DoSac | SpellDescription$ Create a 2/2 blue Illusion token with "When this creature becomes the target of a spell, sacrifice it."
|
||||||
SVar:SacOnSpell:Mode$ BecomesTarget | ValidTarget$ Card.Self | SourceType$ Spell | TriggerZones$ Battlefield | Execute$ DoSac | TriggerDescription$ When CARDNAME becomes the target of a spell, sacrifice it.
|
SVar:SacOnSpell:Mode$ BecomesTarget | ValidTarget$ Card.Self | SourceType$ Spell | TriggerZones$ Battlefield | Execute$ DoSac | TriggerDescription$ When CARDNAME becomes the target of a spell, sacrifice it.
|
||||||
SVar:DoSac:DB$ Sacrifice | Defined$ Self
|
SVar:DoSac:DB$ Sacrifice | Defined$ Self
|
||||||
A:AB$ CopyPermanent | Cost$ SubCounter<5/LOYALTY> | Planeswalker$ True | Ultimate$ True | Defined$ Self | NumCopies$ 2 | NonLegendary$ True | SpellDescription$ Create two tokens that are copies of CARDNAME, except they're not legendary.
|
A:AB$ CopyPermanent | Cost$ SubCounter<5/LOYALTY> | Planeswalker$ True | Ultimate$ True | Defined$ Self | NumCopies$ 2 | NonLegendary$ True | ResetAbilityActivations$ True | SpellDescription$ Create two tokens that are copies of CARDNAME, except they're not legendary.
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/jace_cunning_castaway.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/jace_cunning_castaway.jpg
|
||||||
Oracle:[+1] Whenever one or more creatures you control deal combat damage to a player this turn, draw a card, then discard a card.\n[-2] Create a 2/2 blue Illusion token with "When this creature becomes the target of a spell, sacrifice it."\n[-5] Create two tokens that are copies of Jace, Cunning Castaway, except they're not legendary.
|
Oracle:[+1] Whenever one or more creatures you control deal combat damage to a player this turn, draw a card, then discard a card.\n[-2] Create a 2/2 blue Illusion token with "When this creature becomes the target of a spell, sacrifice it."\n[-5] Create two tokens that are copies of Jace, Cunning Castaway, except they're not legendary.
|
||||||
Reference in New Issue
Block a user