Skip to content

Commit

Permalink
Fixes holoparasites spamming messages while taking negative damage (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangelingRain authored and KorPhaeron committed Jun 21, 2016
1 parent 68b514a commit 44875e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/mob/living/simple_animal/guardian/guardian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ var/global/list/parasites = list() //all currently existing/living guardians
if(loc == summoner)
return 0
summoner.adjustBruteLoss(amount)
if(amount)
if(amount > 0)
summoner << "<span class='danger'><B>Your [name] is under attack! You take damage!</span></B>"
summoner.visible_message("<span class='danger'><B>Blood sprays from [summoner] as [src] takes damage!</B></span>")
if(summoner.stat == UNCONSCIOUS)
summoner << "<span class='danger'><B>Your body can't take the strain of sustaining [src] in this condition, it begins to fall apart!</span></B>"
summoner.adjustCloneLoss(amount*0.5) //dying hosts take 50% bonus damage as cloneloss
if(summoner.stat == UNCONSCIOUS)
summoner << "<span class='danger'><B>Your body can't take the strain of sustaining [src] in this condition, it begins to fall apart!</span></B>"
summoner.adjustCloneLoss(amount*0.5) //dying hosts take 50% bonus damage as cloneloss
update_health_hud()

/mob/living/simple_animal/hostile/guardian/ex_act(severity, target)
Expand Down

0 comments on commit 44875e7

Please sign in to comment.