Commit 5e20d5ca by Tuukka Kivilahti

better fix

1 parent 2f3ac5ba
...@@ -171,7 +171,7 @@ public class CardTemplateBean implements CardTemplateBeanLocal { ...@@ -171,7 +171,7 @@ public class CardTemplateBean implements CardTemplateBeanLocal {
PrintedCard biggestCard = null; PrintedCard biggestCard = null;
for (PrintedCard card : myCards) { for (PrintedCard card : myCards) {
if (biggestCard == null || biggestCard.getTemplate().getPower() < card.getTemplate().getPower()) { if (card.getEnabled() && (biggestCard == null || biggestCard.getTemplate().getPower() < card.getTemplate().getPower())) {
// The biggest card should be the only one enabled. // The biggest card should be the only one enabled.
if (biggestCard != null) { if (biggestCard != null) {
biggestCard.setEnabled(false); biggestCard.setEnabled(false);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!