Fix Savior of Ollenbock only allowing the targeting of controlled creatures

This commit is contained in:
PurpleCrowbar 2023-02-06 17:19:40 +00:00
parent 32e2f9aa31
commit 6145aa0dd6

View file

@ -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
));
}