mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Life from the Loam - fix TargetCardInYourGraveyard: zero cards can always be chosen
This commit is contained in:
parent
1b4d61d914
commit
3fa12ee2bb
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ public class TargetCardInYourGraveyard extends TargetCard {
|
|||
public boolean canChoose(UUID sourceId, UUID sourceControllerId, Game game) {
|
||||
Player player = game.getPlayer(sourceControllerId);
|
||||
if (player != null) {
|
||||
if (this.minNumberOfTargets == 0) {
|
||||
return true;
|
||||
}
|
||||
int possibleTargets = 0;
|
||||
for (Card card : player.getGraveyard().getCards(filter, game)) {
|
||||
if (sourceId == null || isNotTarget() || !game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.TARGET, card.getId(), sourceId, sourceControllerId))) {
|
||||
|
|
Loading…
Reference in a new issue