This commit is contained in:
Jeff Wadsworth 2021-10-19 10:38:31 -05:00
parent 1de223f7da
commit 8b36c70507
2 changed files with 16 additions and 13 deletions

View file

@ -9,6 +9,7 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.target.common.TargetCreaturePermanent;
/**
@ -25,6 +26,7 @@ public final class SavageSurge extends CardImpl {
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));
Effect effect = new UntapTargetEffect();
effect.setOutcome(Outcome.Benefit);
effect.setText("Untap that creature");
this.getSpellAbility().addEffect(effect);
}

View file

@ -53,8 +53,8 @@ class VeyranVoiceOfDualityEffect extends ReplacementEffectImpl {
VeyranVoiceOfDualityEffect() {
super(Duration.WhileOnBattlefield, Outcome.Benefit);
staticText = "if you casting or copying an instant or sorcery spell causes a triggered ability " +
"of a permanent you control to trigger, that ability triggers an additional time";
staticText = "if you casting or copying an instant or sorcery spell causes a triggered ability "
+ "of a permanent you control to trigger, that ability triggers an additional time";
}
private VeyranVoiceOfDualityEffect(final VeyranVoiceOfDualityEffect effect) {
@ -73,19 +73,20 @@ class VeyranVoiceOfDualityEffect extends ReplacementEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
GameEvent sourceEvent = ((NumberOfTriggersEvent) event).getSourceEvent();
if (sourceEvent.getType() != GameEvent.EventType.COPIED_STACKOBJECT
&& sourceEvent.getType() != GameEvent.EventType.SPELL_CAST) {
return false;
}
NumberOfTriggersEvent numberOfTriggersEvent = (NumberOfTriggersEvent) event;
GameEvent sourceEvent = numberOfTriggersEvent.getSourceEvent();
if (sourceEvent.getType() == GameEvent.EventType.SPELL_CAST
|| sourceEvent.getType() == GameEvent.EventType.COPIED_STACKOBJECT) {
Spell spell = game.getSpell(sourceEvent.getTargetId());
Permanent permanent = game.getPermanent(sourceEvent.getSourceId());
Permanent permanent = game.getPermanent(((NumberOfTriggersEvent) event).getSourceId());
return spell != null
&& permanent != null
&& spell.isInstantOrSorcery(game)
&& spell.isControlledBy(source.getControllerId())
&& permanent.isControlledBy(source.getControllerId());
}
return false;
}
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {