Merge pull request #4736 from FlattestGuitar/drone

Mining drone fix.
This commit is contained in:
TheDZD
2016-06-22 14:02:33 -04:00
committed by GitHub
+2 -2
View File
@@ -731,13 +731,13 @@
if(istype(I, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/W = I
if(W.welding && !stat)
if(AIStatus == AI_ON)
if(FindTarget())//if the bot has anything to shoot at, to prevent combat repair cheesing
to_chat(user, "<span class='info'>[src] is moving around too much to repair!</span>")
return
if(maxHealth == health)
to_chat(user, "<span class='info'>[src] is at full integrity.</span>")
else
health += 10
adjustHealth(-10)//actually repairs the bot, not damages it
to_chat(user, "<span class='info'>You repair some of the armor on [src].</span>")
return
if(istype(I, /obj/item/device/mining_scanner) || istype(I, /obj/item/device/t_scanner/adv_mining_scanner))