Fixed Wheel of Misfortune (fixes #7331) (#7336)

This commit is contained in:
Daniel Bomar 2021-01-07 15:07:30 -06:00 committed by GitHub
parent 65ace87a83
commit bbe6809ed1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,9 +81,10 @@ class WheelOfMisfortuneEffect extends OneShotEffect {
if (player == null) {
continue;
}
if (entry.getValue() >= maxValue) {
if (entry.getValue() == maxValue) {
player.damage(maxValue, source.getSourceId(), source, game);
} else if (entry.getValue() > minValue) {
}
if (entry.getValue() != minValue) {
player.discard(player.getHand(), false, source, game);
player.drawCards(7, source, game);
}