Hotfix for stun batons harming on all non-help intents.

This commit is contained in:
Erthilo
2012-06-28 22:31:16 +01:00
parent f694e99abb
commit 73e2b5f5c2
+2 -2
View File
@@ -60,7 +60,7 @@
..()
return
if(user.a_intent != "help")
if(user.a_intent == "hurt")
if(!..()) return
H.apply_effect(5, WEAKEN, 0)
H.visible_message("<span class='danger'>[M] has been beaten with the [src] by [user]!</span>")
@@ -77,7 +77,7 @@
H.lastattacker = user
charges--
H.visible_message("<span class='danger'>[M] has been stunned with the [src] by [user]!</span>")
playsound(src.loc, "sparks", 75, 1, -1)
playsound(src.loc, 'Egloves.ogg', 50, 1, -1)
if(charges < 1)
status = 0
update_icon()