Fix calculation crash in DPS graph

This commit is contained in:
DarkPhoenix
2019-08-04 00:20:22 +03:00
parent f5b1c79029
commit cab2d41269

View File

@@ -51,7 +51,7 @@ def getWebbedSpeed(src, tgt, currentUnwebbedSpeed, webMods, webDrones, webFighte
mobileWebs = []
mobileWebs.extend(webFighters)
# Drones have range limit
if distance is None or distance <= src.extraAttributes['droneControlRange']:
if distance is None or distance <= src.item.extraAttributes['droneControlRange']:
mobileWebs.extend(webDrones)
atkRadius = src.getRadius()
# As mobile webs either follow the target or stick to the attacking ship,