Fixes a bug with species component application (#18696)

* Update trait.dm

Update trait.dm

Fixes a bug and cleans up Omen dice application

* small godmode fix

* Proper

* Fixes organ regen
This commit is contained in:
Cameron Lennox
2025-10-27 01:51:35 -04:00
committed by GitHub
parent 4ff81edb10
commit cccd2280a7
7 changed files with 29 additions and 12 deletions
+4 -1
View File
@@ -14,7 +14,9 @@
if(our_target.status_flags & GODMODE) //Already have it.
return ELEMENT_INCOMPATIBLE
our_target.status_flags |= GODMODE
our_target.status_flags &= ~CANSTUN
our_target.status_flags &= ~CANWEAKEN
our_target.status_flags &= ~CANPARALYSE
if(ishuman(target))
RegisterSignal(target, COMSIG_EXTERNAL_ORGAN_PRE_DAMAGE_APPLICATION, PROC_REF(on_external_damaged))
RegisterSignal(target, COMSIG_INTERNAL_ORGAN_PRE_DAMAGE_APPLICATION, PROC_REF(on_internal_damaged))
@@ -65,6 +67,7 @@
//And finally, remove the fact we're in godmode.
our_target.status_flags &= ~GODMODE
our_target.status_flags |= CANSTUN|CANWEAKEN|CANPARALYSE
return ..()
/datum/element/godmode/proc/on_external_damaged()