mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Fix Savior of Ollenbock only allowing the targeting of controlled creatures
This commit is contained in:
parent
32e2f9aa31
commit
6145aa0dd6
1 changed files with 9 additions and 1 deletions
|
@ -14,6 +14,8 @@ import mage.constants.Outcome;
|
|||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
import mage.game.ExileZone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
@ -58,12 +60,18 @@ public final class SaviorOfOllenbock extends CardImpl {
|
|||
|
||||
class SaviorOfOllenbockTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("other target creature");
|
||||
|
||||
static {
|
||||
filter.add(AnotherPredicate.instance);
|
||||
}
|
||||
|
||||
SaviorOfOllenbockTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new ExileTargetForSourceEffect());
|
||||
this.addTarget(new TargetCardInGraveyardBattlefieldOrStack(
|
||||
0, 1,
|
||||
StaticFilters.FILTER_CARD_CREATURE,
|
||||
StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE
|
||||
filter
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue