Skip to content

Commit

Permalink
[MIRROR] Spasms don't trigger in stasis or otherwise [MDB IGNORE] (#142)
Browse files Browse the repository at this point in the history
* Spasms don't trigger in stasis or otherwise (#79065
---------
Co-authored-by: MrMelbert <[email protected]>
  • Loading branch information
Steals-The-PRs authored Oct 19, 2023
1 parent 7e95634 commit 845e99e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/datums/status_effects/debuffs/debuffs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@
alert_type = null

/datum/status_effect/spasms/tick(seconds_between_ticks)
if(owner.stat >= UNCONSCIOUS)
if(owner.stat >= UNCONSCIOUS || owner.incapacitated() || HAS_TRAIT(owner, TRAIT_HANDS_BLOCKED) || HAS_TRAIT(owner, TRAIT_IMMOBILIZED))
return
if(!prob(15))
return
Expand All @@ -614,8 +614,6 @@
to_chat(owner, span_warning("Your leg spasms!"))
step(owner, pick(GLOB.cardinals))
if(2)
if(owner.incapacitated())
return
var/obj/item/held_item = owner.get_active_held_item()
if(!held_item)
return
Expand Down Expand Up @@ -644,8 +642,6 @@
owner.ClickOn(owner)
owner.set_combat_mode(FALSE)
if(5)
if(owner.incapacitated())
return
var/obj/item/held_item = owner.get_active_held_item()
var/list/turf/targets = list()
for(var/turf/nearby_turfs in oview(owner, 3))
Expand Down

0 comments on commit 845e99e

Please sign in to comment.