Fire discard cards event when discarding as a cost (#7436)

Fire discard cards event when discarding as a cost, fixes #7368
This commit is contained in:
smartinsempere 2021-01-31 20:03:30 +01:00 committed by GitHub
parent 2d96d36ec8
commit 68613672b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 79 additions and 1 deletions

View file

@ -783,7 +783,7 @@ public abstract class PlayerImpl implements Player, Serializable {
@Override
public boolean discard(Card card, boolean payForCost, Ability source, Game game) {
return doDiscard(card, source, game, payForCost, false);
return doDiscard(card, source, game, payForCost, true);
}
private boolean doDiscard(Card card, Ability source, Game game, boolean payForCost, boolean fireFinalEvent) {