* Tiny Leaders Format - Fixed a bug that happened as you did not set the Leader name to the deck name.

This commit is contained in:
LevelX2 2015-03-20 17:30:12 +01:00
parent d80ba99af9
commit 10b7791cd2
2 changed files with 19 additions and 10 deletions

View file

@ -121,15 +121,17 @@ public abstract class GameTinyLeadersImpl extends GameImpl{
*/
public static Card getCommanderCard(String commanderName, UUID ownerId) {
Card commander = null;
switch (commanderName) {
case "Sultai":
commander = new DefaultCommander(ownerId, commanderName, "{U}{B}{G}");
break;
default:
CardInfo cardInfo = CardRepository.instance.findCard(commanderName);
if (cardInfo != null) {
commander = cardInfo.getCard();
}
if (commanderName != null) {
switch (commanderName) {
case "Sultai":
commander = new DefaultCommander(ownerId, commanderName, "{U}{B}{G}");
break;
default:
CardInfo cardInfo = CardRepository.instance.findCard(commanderName);
if (cardInfo != null) {
commander = cardInfo.getCard();
}
}
}
return commander;
}