Merged in slehan/holocore/nge-434-fixes (pull request #377)

NGE-434: fixed bug that allowed items to be worn by races that shouldn't be able to
This commit is contained in:
Obique PSWG
2016-12-08 12:09:46 -06:00
+1 -1
View File
@@ -397,7 +397,7 @@ public final class StaticItemService extends Service {
object.addAttribute("effect", buffName);
// Add the race restrictions only if there are any
if (!wearableByWookiees && !wearableByIthorians && !wearableByRodians && !wearableByTrandoshans && !wearableByRest)
if (!wearableByWookiees || !wearableByIthorians || !wearableByRodians || !wearableByTrandoshans || !wearableByRest)
object.addAttribute("species_restrictions.species_name", buildRaceRestrictionString());
}