You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like GainAbilityTargetEffect doesn't work for cards like [[What Must Be Done]] or [[Necromantic Summons]] (can't give EntersBattlefieldAbility).
Maybe there are some limitation for EntersBattlefieldAbility (e.g. it works for source only). Need research.
Code example for alternative implementation of What Must Be Done (from #13377):
// * Release Juno -- Return target historic permanent card from your graveyard to the battlefield. It enters with two additional +1/+1 counters on it if it's a creature.Modemode = newMode(newReturnFromGraveyardToBattlefieldTargetEffect());
mode.addEffect(newGainAbilityTargetEffect(
newEntersBattlefieldAbility(
newAddCountersSourceEffect(CounterType.P1P1.createInstance(2)),
WhatMustBeDoneSourceIsCreatureCondition.instance,
null,
null
),
Duration.EndOfTurn,
"It enters with two additional +1/+1 counters on it if it's a creature.",
false
));
mode.addTarget(newTargetCardInYourGraveyard(filterHistoricPermanentCard));
this.getSpellAbility().addMode(mode.withFlavorWord("Release Juno"));
{3}{W}{W}
Sorcery
Choose one —
• Let the World Burn — Destroy all artifacts and creatures.
• Release Juno — Return target historic permanent card from your graveyard to the battlefield. It enters with two additional +1/+1 counters on it if it's a creature. (Artifacts, legendaries, and Sagas are historic.)
{4}{B}
Sorcery
Put target creature card from a graveyard onto the battlefield under your control.
Spell mastery — If there are two or more instant and/or sorcery cards in your graveyard, that creature enters with two additional +1/+1 counters on it.
from #13377
Looks like
GainAbilityTargetEffect
doesn't work for cards like [[What Must Be Done]] or [[Necromantic Summons]] (can't giveEntersBattlefieldAbility
).Maybe there are some limitation for
EntersBattlefieldAbility
(e.g. it works for source only). Need research.Code example for alternative implementation of What Must Be Done (from #13377):
The text was updated successfully, but these errors were encountered: