* Discard cost - added hint text in card choose dialog about discard;

This commit is contained in:
Oleg Agafonov 2020-08-01 21:07:37 +04:00
parent 610baac6ab
commit 4ba7c18d43
2 changed files with 9 additions and 5 deletions

View file

@ -43,7 +43,7 @@ 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
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));
}
@ -92,4 +92,10 @@ public class TargetCardInHand extends TargetCard {
public String getTargetedName(Game game) {
return filter.getMessage();
}
@Override
public TargetCardInHand withChooseHint(String chooseHint) {
super.withChooseHint(chooseHint);
return this;
}
}