Remove drifter weapons from search results

This commit is contained in:
DarkPhoenix
2022-02-05 02:11:39 +03:00
parent 66018642f7
commit c459cbbc92
2 changed files with 5 additions and 1 deletions

View File

@@ -654,6 +654,8 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut, M
"""
slot = self.slot
if slot is None:
return False
if fit.getSlotsFree(slot) <= (0 if self.owner != fit else -1):
return False