mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fixes rng block chance not working (#20255)
* fixes rng block chance not working * Update code/__DEFINES/flags.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --------- Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -244,6 +244,10 @@ emp_act
|
||||
var/datum/component/parry/left_hand_parry = l_hand?.GetComponent(/datum/component/parry)
|
||||
var/datum/component/parry/right_hand_parry = r_hand?.GetComponent(/datum/component/parry)
|
||||
if(!right_hand_parry && !left_hand_parry)
|
||||
if(l_hand?.flags_2 & RANDOM_BLOCKER_2)
|
||||
return l_hand
|
||||
if(r_hand?.flags_2 & RANDOM_BLOCKER_2)
|
||||
return r_hand
|
||||
return null // no parry component
|
||||
|
||||
if(right_hand_parry && left_hand_parry)
|
||||
|
||||
Reference in New Issue
Block a user