* Master of Predicaments - Improve players informing

This commit is contained in:
Quercitron 2014-07-16 02:56:16 +04:00
parent 7470426559
commit aacc73fd09

View file

@ -113,13 +113,15 @@ class MasterOfPredicamentsEffect extends OneShotEffect {
return false;
}
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;
} else {
game.informPlayers(attackedPlayer.getName() + " guessed that the chosen card's converted mana cost is not greater than 4");
guessWrong = cardFromHand.getManaCost().convertedManaCost() > 4;
}
if (guessWrong) {
game.informPlayers(attackedPlayer.getName() + " guessed " + (guessWrong ? "wrong" : "right"));
if (guessWrong) {
if (cardFromHand.getCardType().contains(CardType.LAND)) {
// If the revealed card is a land, you can't cast it. So nothing happens
} else {