Skip to content

Commit

Permalink
[MIRROR] Dismemberment moodlet now properly clears for regenerated li…
Browse files Browse the repository at this point in the history
…mbs [MDB IGNORE] (#837)

* Dismemberment moodlet now properly clears for regenerated limbs (#79822)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: wesoda25 <[email protected]>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
  • Loading branch information
4 people authored Nov 27, 2023
1 parent 7c89863 commit 550d38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/surgery/bodyparts/dismemberment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
scar.victim = new_limb_owner
LAZYADD(new_limb_owner.all_scars, scar)

if(!special && new_limb_owner.mob_mood.has_mood_of_category("dismembered_[body_zone]"))
if(new_limb_owner.mob_mood?.has_mood_of_category("dismembered_[body_zone]"))
new_limb_owner.clear_mood_event("dismembered_[body_zone]")
new_limb_owner.add_mood_event("phantom_pain_[body_zone]", /datum/mood_event/reattachment, src)

Expand Down

0 comments on commit 550d38c

Please sign in to comment.