Fix constructs being unable to hit things (#1639)

Pretty much settle over any issues with constructs and attacking things, also, the juggernaut proc is pretty much useless and snowflake code, since, they can just break and pry open airlocks just fine without it.
This commit is contained in:
Alberyk
2017-01-25 12:23:14 -02:00
committed by skull132
parent 2e6dc9dd62
commit bcb78f9f19
@@ -85,7 +85,6 @@
user << msg
/mob/living/simple_animal/construct/UnarmedAttack(var/atom/A, var/proximity)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if(istype(A, /obj/effect/rune))
var/obj/effect/rune/R = A
do_attack_animation(R)
@@ -145,19 +144,6 @@
return (..(P))
/mob/living/simple_animal/construct/armoured/UnarmedAttack(var/atom/A, var/proximity)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if(istype(A, /obj/machinery))
// Destroy machines instead of opening their UI
var/obj/machinery/M = A
do_attack_animation(M)
playsound(loc, attack_sound, 50, 1, 1)
M.ex_act(3.0)
else
..()
////////////////////////Wraith/////////////////////////////////////////////