From 3a956d5f8765bfc01696ac4f61642fd404bbfce2 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Mon, 12 Oct 2015 12:14:10 -0500 Subject: [PATCH] Fixes --- .../mob/living/simple_animal/guardian/guardian.dm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/living/simple_animal/guardian/guardian.dm b/code/modules/mob/living/simple_animal/guardian/guardian.dm index f7daf8177ec..b166f728e58 100644 --- a/code/modules/mob/living/simple_animal/guardian/guardian.dm +++ b/code/modules/mob/living/simple_animal/guardian/guardian.dm @@ -69,6 +69,8 @@ /mob/living/simple_animal/hostile/guardian/adjustBruteLoss(amount) //The spirit is invincible, but passes on damage to the summoner var/damage = amount * src.damage_transfer if (src.summoner) + if(src.loc == summoner) + return src.summoner.adjustBruteLoss(damage) if(damage) src.summoner << "Your [src.name] is under attack! You take damage!" @@ -80,9 +82,6 @@ /mob/living/simple_animal/hostile/guardian/ex_act(severity, target) switch (severity) if (1) - if(src.summoner) - src.summoner << "Your [src.name] was blown up!" - src.summoner.gib() gib() return if (2) @@ -91,6 +90,12 @@ if(3) adjustBruteLoss(30) +/mob/living/simple_animal/hostile/guardian/gib() + if(summoner) + src.summoner << "Your [src.name] was blown up!" + src.summoner.gib() + ghostize() + qdel(src) //Manifest, Recall, Communicate @@ -130,7 +135,7 @@ if(M == src.summoner || (M in dead_mob_list)) M << "[src]: [input]" src << "[src]: [input]" - log_say("[src.real_name]/[src.key] : [text]") + log_say("[src.real_name]/[src.key] : [input]") /mob/living/proc/guardian_comm() set name = "Communicate" @@ -222,7 +227,7 @@ set name = "Set Battlecry" set category = "Guardian" set desc = "Choose what you shout as you punch" - var/input = stripped_input(src,"What do you want your battlecry to be? Max length of 6 characters.", ,"", 6) + var/input = stripped_input(src,"What do you want your battlecry to be? Max length of 5 characters.", ,"", 6) if(input) src.battlecry = input