Activate all fighter abilities by default and deactivate fighter groups if more than the maximum number of fighters are in bay

This commit is contained in:
Indiction
2016-11-06 23:19:18 +01:00
parent c6e481efcf
commit 6cda47be9f

View File

@@ -658,6 +658,13 @@ class Fit(object):
'''
if fighter is None:
fighter = eos.types.Fighter(item)
used = fit.getSlotsUsed(fighter.slot)
total = fit.getNumSlots(fighter.slot)
for ability in fighter.abilities:
ability.active = True if ability.effect.isImplemented else False
if used >= total:
fighter.active = False
if fighter.fits(fit) is True:
fit.fighters.append(fighter)
else: