Make armor resistance bonus of heretic to rely on correct skill

This commit is contained in:
DarkPhoenix
2013-11-19 22:04:02 +04:00
parent 053e6b1780
commit 666f4c9adb

View File

@@ -2,7 +2,7 @@
# Ship: Heretic
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Assault Frigates").level
level = fit.character.getSkill("Interdictors").level
for damageType in ("Em", "Thermal", "Explosive", "Kinetic"):
fit.ship.boostItemAttr("armor%sDamageResonance" % damageType,
ship.getModifiedItemAttr("eliteBonusInterdictors1") * level)