mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
You can no longer parry while dead (#26529)
* You can no longer parry while dead * Update code/datums/components/parry.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Adrer <erwin@lombok.demon.nl> --------- Signed-off-by: Adrer <erwin@lombok.demon.nl> Co-authored-by: adrermail@gmail.com <adrermail@gmail.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -79,6 +79,8 @@
|
||||
/datum/component/parry/proc/start_parry(mob/living/L)
|
||||
SIGNAL_HANDLER
|
||||
var/time_since_parry = world.time - time_parried
|
||||
if(L.stat != CONSCIOUS)
|
||||
return
|
||||
if(requires_two_hands && !HAS_TRAIT(parent, TRAIT_WIELDED)) // If our item has special conditions before being able to parry.
|
||||
return
|
||||
if(requires_activation && !HAS_TRAIT(parent, TRAIT_ITEM_ACTIVE)) // If our item requires an activation to be able to parry. [E-sword / Teleshield, etc.]
|
||||
|
||||
Reference in New Issue
Block a user