mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Stamina Damage Rework (#12591)
This commit is contained in:
committed by
variableundefined
parent
573d390d93
commit
00f5e0613c
@@ -270,7 +270,7 @@
|
||||
return
|
||||
if(O.loc == user)
|
||||
return
|
||||
if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.lying)
|
||||
if(user.restrained() || user.stat || user.IsWeakened() || user.stunned || user.paralysis || user.lying)
|
||||
return
|
||||
if((!( istype(O, /atom/movable) ) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src)))
|
||||
return
|
||||
|
||||
@@ -696,7 +696,7 @@
|
||||
return
|
||||
|
||||
/obj/structure/rack/attack_hand(mob/living/user)
|
||||
if(user.weakened || user.resting || user.lying)
|
||||
if(user.IsWeakened() || user.resting || user.lying)
|
||||
return
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
user.do_attack_animation(src, ATTACK_EFFECT_KICK)
|
||||
|
||||
Reference in New Issue
Block a user