[CMR] Fix Zara, Renegade Recruiter

This commit is contained in:
Daniel Bomar 2020-11-06 19:48:29 -06:00
parent a4e4e5d8c4
commit aa2b10c7e5

View file

@ -44,8 +44,10 @@ public class TargetCardInHand extends TargetCard {
public boolean canTarget(UUID playerId, UUID id, Ability source, Game game) {
// Has to be a card in the hand of a player in range. We don't know here, from which player's hand so we have to check all possible players
// And because a card in hand is never targeted we can omitt specific targeting related checks
Card card = game.getCard(id);
return game.getState().getZone(id) == Zone.HAND
&& game.getState().getPlayersInRange(getTargetController() == null ? playerId : getTargetController(), game).contains(game.getOwnerId(id));
&& game.getState().getPlayersInRange(getTargetController() == null ? playerId : getTargetController(), game).contains(game.getOwnerId(id))
&& card != null && filter.match(card, game);
}
@Override