Fixes AOE modkits not working because I messed up the logic (#1400)

This commit is contained in:
CitadelStationBot
2017-06-04 11:03:45 -05:00
committed by kevinz000
parent eeda9fd77f
commit c36e599a6a

View File

@@ -313,7 +313,7 @@
. = ..()
if(.)
for(var/obj/item/borg/upgrade/modkit/aoe/AOE in KA.modkits) //make sure only one of the aoe modules has values if somebody has multiple
if(AOE.stats_stolen)
if(AOE.stats_stolen || AOE == src)
continue
modifier += AOE.modifier //take its modifiers
AOE.modifier = 0