cult blade runtime fix

This commit is contained in:
Fox-McCloud
2017-07-13 19:23:22 -04:00
parent b07eb1a0b5
commit a7249cf930
+7 -6
View File
@@ -43,13 +43,14 @@
embed_chance = 75
var/cooldown = 0
/obj/item/weapon/melee/cultblade/dagger/afterattack(mob/living/target as mob, mob/living/carbon/human/user as mob)
/obj/item/weapon/melee/cultblade/dagger/afterattack(atom/target, mob/living/carbon/human/user)
..()
var/mob/living/carbon/human/bleeder = target
if(!(cooldown > world.time) && ((bleeder.stat != DEAD) && !(NO_BLOOD in bleeder.species.species_traits)))
user.visible_message("<span class='danger'>The runes on the blade absorb the blood of [target]!</span>")
bleeder.bleed(5000)
cooldown = world.time + 2400
if(ishuman(target))
var/mob/living/carbon/human/H = target
if(!(cooldown > world.time) && ((H.stat != DEAD) && !(NO_BLOOD in H.species.species_traits)))
user.visible_message("<span class='danger'>The runes on the blade absorb the blood of [H]!</span>")
H.bleed(5000)
cooldown = world.time + 2400
/obj/item/weapon/restraints/legcuffs/bola/cult
name = "runed bola"