mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* Master of Predicaments - Improve players informing
This commit is contained in:
parent
7470426559
commit
aacc73fd09
1 changed files with 5 additions and 3 deletions
|
@ -113,13 +113,15 @@ class MasterOfPredicamentsEffect extends OneShotEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
boolean guessWrong;
|
boolean guessWrong;
|
||||||
if (attackedPlayer.chooseUse(Outcome.Detriment, "Is the choosen card's converted mana cost greater than 4?", game)) {
|
if (attackedPlayer.chooseUse(Outcome.Detriment, "Is the chosen card's converted mana cost greater than 4?", game)) {
|
||||||
|
game.informPlayers(attackedPlayer.getName() + " guessed that the chosen card's converted mana cost is greater than 4");
|
||||||
guessWrong = cardFromHand.getManaCost().convertedManaCost() <= 4;
|
guessWrong = cardFromHand.getManaCost().convertedManaCost() <= 4;
|
||||||
} else {
|
} else {
|
||||||
|
game.informPlayers(attackedPlayer.getName() + " guessed that the chosen card's converted mana cost is not greater than 4");
|
||||||
guessWrong = cardFromHand.getManaCost().convertedManaCost() > 4;
|
guessWrong = cardFromHand.getManaCost().convertedManaCost() > 4;
|
||||||
}
|
}
|
||||||
if (guessWrong) {
|
|
||||||
game.informPlayers(attackedPlayer.getName() + " guessed " + (guessWrong ? "wrong" : "right"));
|
game.informPlayers(attackedPlayer.getName() + " guessed " + (guessWrong ? "wrong" : "right"));
|
||||||
|
if (guessWrong) {
|
||||||
if (cardFromHand.getCardType().contains(CardType.LAND)) {
|
if (cardFromHand.getCardType().contains(CardType.LAND)) {
|
||||||
// If the revealed card is a land, you can't cast it. So nothing happens
|
// If the revealed card is a land, you can't cast it. So nothing happens
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue