From 5ea027bbd03ae2bed9eafb1ce1fcbc7eab8040a8 Mon Sep 17 00:00:00 2001 From: Scoppio Date: Sat, 14 Dec 2024 00:28:23 -0300 Subject: [PATCH] feat: inverted function call --- megameklab/src/megameklab/ui/generalUnit/QuirksTab.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/megameklab/src/megameklab/ui/generalUnit/QuirksTab.java b/megameklab/src/megameklab/ui/generalUnit/QuirksTab.java index 4422a9b83..c2ad4d817 100644 --- a/megameklab/src/megameklab/ui/generalUnit/QuirksTab.java +++ b/megameklab/src/megameklab/ui/generalUnit/QuirksTab.java @@ -74,7 +74,7 @@ public void refreshQuirks() { for (Enumeration j = group.getSortedOptions(); j.hasMoreElements(); ) { IOption option = j.nextElement(); - if (null == option || !Quirks.isQuirkLegalFor(option, getEntity())) { + if (null == option || Quirks.isQuirkDisallowed(option, getEntity())) { continue; } @@ -93,7 +93,7 @@ public void refreshQuirks() { IOptionGroup group = i.nextElement(); for (Enumeration j = group.getSortedOptions(); j.hasMoreElements(); ) { IOption option = j.nextElement(); - if (!WeaponQuirks.isQuirkLegalFor(option, getEntity(), m.getType())) { + if (WeaponQuirks.isQuirkDisallowed(option, getEntity(), m.getType())) { continue; } addWeaponQuirk(key, option);