More work on restrictions

This commit is contained in:
blitzmann
2016-07-04 10:49:57 -04:00
parent fe8c3a4957
commit 10c79ac812
8 changed files with 37 additions and 5 deletions

View File

@@ -330,7 +330,7 @@ class Skill(HandledItem):
return
for effect in item.effects.itervalues():
if effect.runTime == runTime and effect.isType("passive") and (not isinstance(fit.ship, eos.types.Citadel) or effect.isType("structure")):
if effect.runTime == runTime and effect.isType("passive") and (not fit.isStructure or effect.isType("structure")):
try:
effect.handler(fit, self, ("skill",))
except AttributeError:

View File

@@ -517,6 +517,11 @@ class Fit(object):
self.boosters,
self.appliedImplants,
self.modules
] if not self.isStructure else [
# Ensure a restricted set for citadels
(self.character, self.ship),
self.fighters,
self.modules
]
# Items that are restricted. These items are only run on the local