mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* 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:
parent
d80ba99af9
commit
10b7791cd2
2 changed files with 19 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue