Added missing checks

This commit is contained in:
Matt Lowe 2015-04-12 21:52:17 +02:00
parent 6e39cc3823
commit a2aad95ede

View file

@ -217,13 +217,13 @@ QPair<QString, QString> MessageLogWidget::getFromStr(CardZone *zone, QString car
QString startName = zone->getName(); QString startName = zone->getName();
if (startName == "table") if (startName == "table")
fromStr = tr(" from battlefield"); fromStr = tr(" from play");
else if (startName == "grave") else if (startName == "grave")
fromStr = tr(" from graveyard"); fromStr = isFemale(zone->getPlayer()) ? tr(" from her graveyard") : tr(" from his graveyard");
else if (startName == "rfg") else if (startName == "rfg")
fromStr = tr(" from exile"); fromStr = tr(" from exile");
else if (startName == "hand") else if (startName == "hand")
fromStr = tr(" from hand"); fromStr = isFemale(zone->getPlayer()) ? tr(" from her hand") : tr(" from his hand");
else if (startName == "deck") { else if (startName == "deck") {
if (position >= zone->getCards().size() - 1) { if (position >= zone->getCards().size() - 1) {
if (cardName.isEmpty()) { if (cardName.isEmpty()) {