Merge pull request #9964 from Certhic/borgHeal

fix runtime CureIfHasDisability and borg repair
This commit is contained in:
variableundefined
2018-10-25 07:19:39 +08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
@@ -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()
+1 -1
View File
@@ -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()