mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[WHO] small update to Truth or Consequences
This commit is contained in:
parent
83ab56c8a4
commit
3b121df7e2
1 changed files with 1 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
package mage.cards.t;
|
package mage.cards.t;
|
||||||
|
|
||||||
import mage.MageItem;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
|
@ -66,9 +65,7 @@ class TruthOrConsequencesEffect extends OneShotEffect {
|
||||||
TwoChoiceVote vote = new TwoChoiceVote("Truth (draw card)", "Consequences (deal damage)", Outcome.DrawCard, true);
|
TwoChoiceVote vote = new TwoChoiceVote("Truth (draw card)", "Consequences (deal damage)", Outcome.DrawCard, true);
|
||||||
vote.doVotes(source, game);
|
vote.doVotes(source, game);
|
||||||
player.drawCards(vote.getVoteCount(true), source, game);
|
player.drawCards(vote.getVoteCount(true), source, game);
|
||||||
Optional.of(player)
|
Optional.of(game.getOpponents(player.getId(), true))
|
||||||
.map(MageItem::getId)
|
|
||||||
.map(game::getOpponents)
|
|
||||||
.map(RandomUtil::randomFromCollection)
|
.map(RandomUtil::randomFromCollection)
|
||||||
.map(game::getPlayer)
|
.map(game::getPlayer)
|
||||||
.ifPresent(opponent -> {
|
.ifPresent(opponent -> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue