mirror of
https://github.com/magefree/mage.git
synced 2025-12-19 18:20:13 -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;
|
||||
|
||||
import mage.MageItem;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
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);
|
||||
vote.doVotes(source, game);
|
||||
player.drawCards(vote.getVoteCount(true), source, game);
|
||||
Optional.of(player)
|
||||
.map(MageItem::getId)
|
||||
.map(game::getOpponents)
|
||||
Optional.of(game.getOpponents(player.getId(), true))
|
||||
.map(RandomUtil::randomFromCollection)
|
||||
.map(game::getPlayer)
|
||||
.ifPresent(opponent -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue