PlayerControllerHuman: chooseCardName need to respect face name

This commit is contained in:
Hanmac
2018-04-20 13:03:35 +02:00
parent c47da9acdd
commit 47cf2040f6

View File

@@ -1710,8 +1710,10 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
final PaperCard cp = FModel.getMagicDb().getCommonCards().getCard(cardFace.getName());
// the Card instance for test needs a game to be tested
final Card instanceForPlayer = Card.fromPaperCard(cp, player);
// TODO need the valid check be done against the CardFace?
if (instanceForPlayer.isValid(valid, sa.getHostCard().getController(), sa.getHostCard(), sa)) {
return cp.getName();
// it need to return name for card face
return cardFace.getName();
}
}
}