mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-13 08:04:22 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user