mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-05 23:11:52 +00:00
Prevents attacking yourself with items unless on harm intent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user