mirror of
https://github.com/correl/mage.git
synced 2025-03-16 09:16:26 -09:00
[CMR] Fix Zara, Renegade Recruiter
This commit is contained in:
parent
a4e4e5d8c4
commit
aa2b10c7e5
1 changed files with 3 additions and 1 deletions
|
@ -44,8 +44,10 @@ public class TargetCardInHand extends TargetCard {
|
||||||
public boolean canTarget(UUID playerId, UUID id, Ability source, Game game) {
|
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
|
// 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
|
// 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
|
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
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue