Prevents attacking yourself with items unless on harm intent

This commit is contained in:
mwerezak
2016-04-22 04:57:22 -04:00
committed by HarpyEagle
parent 3c22e65399
commit d4cbc49132
+2
View File
@@ -52,6 +52,8 @@ avoid code duplication. This includes items that may sometimes act as a standard
/obj/item/proc/attack(mob/living/M, mob/living/user, var/target_zone)
if(!force || (flags & NOBLUDGEON))
return 0
if(M == user && user.a_intent != I_HURT)
return 0
/////////////////////////
user.lastattacked = M