Skip to content

Commit

Permalink
dont set cardsLeavingGraveyard if cards set is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jimga150 committed Aug 20, 2024
1 parent fc663c2 commit df68c4a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ public boolean checkTrigger(GameEvent event, Game game) {
.filter(card -> this.isControlledBy(card.getOwnerId()))
.collect(Collectors.toSet());

if (cards.isEmpty()){
return false;
}
this.getAllEffects().setValue("cardsLeavingGraveyard", cards);
return !cards.isEmpty();
return true;
}

@Override
Expand Down

0 comments on commit df68c4a

Please sign in to comment.