Merge pull request #28036 from ChangelingRain/aoemodkitfix

Fixes AOE modkits not working because I messed up the logic
This commit is contained in:
Leo
2017-06-04 12:28:44 -03:00
committed by GitHub

View File

@@ -314,7 +314,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