mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Merge pull request #9964 from Certhic/borgHeal
fix runtime CureIfHasDisability and borg repair
This commit is contained in:
@@ -117,6 +117,9 @@
|
||||
|
||||
parts -= picked
|
||||
|
||||
if(updating_health)
|
||||
updatehealth("heal overall damage")
|
||||
|
||||
/mob/living/silicon/robot/take_overall_damage(brute = 0, burn = 0, updating_health = TRUE, used_weapon = null, sharp = 0)
|
||||
if(status_flags & GODMODE) return //godmode
|
||||
var/list/datum/robot_component/parts = get_damageable_components()
|
||||
|
||||
@@ -572,7 +572,7 @@
|
||||
CureIfHasDisability(TWITCHBLOCK)
|
||||
|
||||
/mob/living/proc/CureIfHasDisability(block)
|
||||
if(dna.GetSEState(block))
|
||||
if(dna && dna.GetSEState(block))
|
||||
dna.SetSEState(block, 0, 1) //Fix the gene
|
||||
genemutcheck(src, block,null, MUTCHK_FORCED)
|
||||
dna.UpdateSE()
|
||||
|
||||
Reference in New Issue
Block a user