mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[SWS] Fix Force Projection
This commit is contained in:
parent
611d6d6a45
commit
59d99e5ba2
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue