Skip to content

Commit

Permalink
remove unnecessary constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jimga150 committed Aug 20, 2024
1 parent d0949df commit 47972dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Mage.Sets/src/mage/cards/a/AmzuSwarmsHunger.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public AmzuSwarmsHunger(UUID ownerId, CardSetInfo setInfo) {
// Whenever one or more cards leave your graveyard, you may create a 1/1 black and green Insect creature token,
// then put a number of +1/+1 counters on it equal to the greatest mana value among those cards.
// Do this only once each turn.
this.addAbility(new CardsLeaveGraveyardTriggeredAbility(new AmzuSwarmsHungerEffect(), true).setDoOnlyOnceEachTurn(true));
this.addAbility(new CardsLeaveGraveyardTriggeredAbility(new AmzuSwarmsHungerEffect()).setDoOnlyOnceEachTurn(true));
}

private AmzuSwarmsHunger(final AmzuSwarmsHunger card) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ public CardsLeaveGraveyardTriggeredAbility(Effect effect) {
}

public CardsLeaveGraveyardTriggeredAbility(Effect effect, FilterCard filter) {
this(effect, filter, false);
}

public CardsLeaveGraveyardTriggeredAbility(Effect effect, boolean optional) {
this(effect, StaticFilters.FILTER_CARD_CARDS, false);
}

public CardsLeaveGraveyardTriggeredAbility(Effect effect, FilterCard filter, boolean optional) {
super(Zone.BATTLEFIELD, effect, optional);
super(Zone.BATTLEFIELD, effect, false);
this.filter = filter;
setTriggerPhrase("Whenever one or more " + filter + " leave your graveyard, ");
}
Expand Down Expand Up @@ -62,6 +54,7 @@ public boolean checkTrigger(GameEvent event, Game game) {
.filter(card -> filter.match(card, getControllerId(), this, game))
.filter(card -> this.isControlledBy(card.getOwnerId()))
.collect(Collectors.toSet());

this.getAllEffects().setValue("cardsLeavingGraveyard", cards);
return !cards.isEmpty();
}
Expand Down

0 comments on commit 47972dc

Please sign in to comment.