[SWS] Fix Force Projection

This commit is contained in:
Alex W. Jackson 2022-11-05 03:23:59 -04:00
parent 611d6d6a45
commit 59d99e5ba2

View file

@ -76,15 +76,11 @@ class ForceProjectionEffect extends OneShotEffect {
// except that it is an Illusion in addition to its other types
effect.setAdditionalSubType(SubType.SPIRIT);
effect.apply(game, source);
// and gains "When this creature becomes the target of a spell, sacrifice it."
Effect sacrificeEffect = new SacrificeSourceEffect();
sacrificeEffect.setTargetPointer(new FixedTarget(effect.getAddedPermanents().get(0), game));
TriggeredAbility ability = new BecomesTargetTriggeredAbility(sacrificeEffect, new FilterSpell());
game.addTriggeredAbility(ability, null);
effect.addAdditionalAbilities(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect(), new FilterSpell()));
return true;
return effect.apply(game, source);
}
return false;
}