mirror of
https://github.com/correl/mage.git
synced 2025-03-16 09:16:26 -09: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);
|
loyaltyCounterLabel.setVisible(false);
|
||||||
otherCounterLabel.setVisible(false);
|
otherCounterLabel.setVisible(false);
|
||||||
for (CounterView counterView:card.getCounters()) {
|
for (CounterView counterView:card.getCounters()) {
|
||||||
|
if (counterView.getCount() == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
switch(counterView.getName()) {
|
switch(counterView.getName()) {
|
||||||
case "+1/+1":
|
case "+1/+1":
|
||||||
if (counterView.getCount() != plusCounter) {
|
if (counterView.getCount() != plusCounter) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue