More work on restrictions
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user