mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Counter display - don't display counters if 0 amount.
This commit is contained in:
parent
683082eaa4
commit
4990bdc9c9
1 changed files with 3 additions and 0 deletions
|
@ -830,6 +830,9 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
loyaltyCounterLabel.setVisible(false);
|
||||
otherCounterLabel.setVisible(false);
|
||||
for (CounterView counterView:card.getCounters()) {
|
||||
if (counterView.getCount() == 0) {
|
||||
continue;
|
||||
}
|
||||
switch(counterView.getName()) {
|
||||
case "+1/+1":
|
||||
if (counterView.getCount() != plusCounter) {
|
||||
|
|
Loading…
Reference in a new issue