Skip to content

Commit

Permalink
simplify control path in paired damage trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
jimga150 committed Feb 23, 2024
1 parent 342d2f5 commit 8339d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mage.Sets/src/mage/cards/d/DonnaNoble.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ boolean checkTriggerPaired(DamagedBatchForPermanentsEvent dEvent, Game game) {
return false;
}
} else {
paired = null;
return false;
}

int damage = dEvent
.getEvents()
.stream()
.filter(damagedEvent -> paired != null && paired.getId().equals(damagedEvent.getTargetId()))
.filter(damagedEvent -> paired.getId().equals(damagedEvent.getTargetId()))
.mapToInt(GameEvent::getAmount)
.sum();
if (damage < 1) {
Expand Down

0 comments on commit 8339d82

Please sign in to comment.