[VOW] fixed Savior of Ollenbock issues (fixes #8786)

This commit is contained in:
Evan Kranzler 2022-03-25 17:35:27 -04:00
parent f28643d0f6
commit effdf14579
4 changed files with 102 additions and 3 deletions

View file

@ -239,7 +239,7 @@ public class TargetCard extends TargetObject {
Card card = game.getCard(id);
return card != null
&& zone != null && zone.match(game.getState().getZone(id))
&& getFilter() != null && getFilter().match(card, playerId, game);
&& getFilter() != null && getFilter().match(card, playerId, source, game);
}
public boolean canTarget(UUID playerId, UUID id, Ability source, Cards cards, Game game) {

View file

@ -54,7 +54,7 @@ public class TargetCardInGraveyardOrBattlefield extends TargetCard {
if (!super.canTarget(id, source, game)) { // in graveyard first
Permanent permanent = game.getPermanent(id);
if (permanent != null) {
return filterBattlefield.match(permanent, game);
return filterBattlefield.match(permanent, source.getControllerId(), source, game);
}
}
return true;