Skip to content

Commit

Permalink
Attacks now only trigger effects when valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 committed Aug 3, 2023
1 parent 3114bc0 commit 215eff3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions code/datums/diseases/black_goo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,18 @@
if(.)
playsound(loc, 'sound/weapons/bladeslice.ogg', 25, 1, 5)

if(ishuman_strict(target))
var/mob/living/carbon/human/human = target
if(ishuman_strict(target))
var/mob/living/carbon/human/human = target

if(locate(/datum/disease/black_goo) in human.viruses)
to_chat(user, SPAN_XENOWARNING("<b>You sense your target is infected.</b>"))
else
var/bio_protected = max(CLOTHING_ARMOR_HARDCORE - human.getarmor(user.zone_selected, ARMOR_BIO), 0)
if(prob(bio_protected))
target.AddDisease(new /datum/disease/black_goo)
to_chat(user, SPAN_XENOWARNING("<b>You sense your target is now infected.</b>"))
if(locate(/datum/disease/black_goo) in human.viruses)
to_chat(user, SPAN_XENOWARNING("<b>You sense your target is infected.</b>"))
else
var/bio_protected = max(CLOTHING_ARMOR_HARDCORE - human.getarmor(user.zone_selected, ARMOR_BIO), 0)
if(prob(bio_protected))
target.AddDisease(new /datum/disease/black_goo)
to_chat(user, SPAN_XENOWARNING("<b>You sense your target is now infected.</b>"))

target.apply_effect(2, SLOW)
target.apply_effect(2, SLOW)

/obj/item/weapon/zombie_claws/afterattack(obj/O as obj, mob/user as mob, proximity)
if(get_dist(src, O) > 1)
Expand Down

0 comments on commit 215eff3

Please sign in to comment.