Merge pull request #7172 from weirddan455/zara-fix

[CMR] Fix Zara, Renegade Recruiter
This commit is contained in:
Oleg Agafonov 2020-11-07 11:31:52 +01:00 committed by GitHub
commit 7e48a8b784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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