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] (#25259)

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

## About The Pull Request

That's a mouthful. Upon being resurrected by a crystal, dismembered
ethereals now lose the dismemberment negative moodlet. Fixes: #79812

## Changelog
:cl:
fix: the dismemberment moodlet will now properly clear for ethereals who
regrew a limb in their resurrection crystals
/:cl:

---------

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Dismemberment moodlet now properly clears for regenerated limbs

---------

Co-authored-by: wesoda25 <[email protected]>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
  • Loading branch information
3 people authored and FFMirrorBot committed Nov 26, 2023
1 parent 1251486 commit e09fce1
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 e09fce1

Please sign in to comment.