mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
PlayerControllerHuman: chooseCardName need to respect face name
This commit is contained in:
@@ -1710,8 +1710,10 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
final PaperCard cp = FModel.getMagicDb().getCommonCards().getCard(cardFace.getName());
|
final PaperCard cp = FModel.getMagicDb().getCommonCards().getCard(cardFace.getName());
|
||||||
// the Card instance for test needs a game to be tested
|
// the Card instance for test needs a game to be tested
|
||||||
final Card instanceForPlayer = Card.fromPaperCard(cp, player);
|
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)) {
|
if (instanceForPlayer.isValid(valid, sa.getHostCard().getController(), sa.getHostCard(), sa)) {
|
||||||
return cp.getName();
|
// it need to return name for card face
|
||||||
|
return cardFace.getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user