From 334347b4bbcdaa8b0cf1fb083a015352d597cb60 Mon Sep 17 00:00:00 2001 From: "aranclanos@hotmail.com" Date: Wed, 9 Jan 2013 19:17:28 +0000 Subject: [PATCH] Runtime fix for slimes trying to eat a mob that doesn't exist anymore git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5503 316c924e-a436-60f5-8080-3fe189b3f50e --- .../mob/living/carbon/metroid/powers.dm | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/code/modules/mob/living/carbon/metroid/powers.dm b/code/modules/mob/living/carbon/metroid/powers.dm index 2d546710e7d..af7589fd0c5 100644 --- a/code/modules/mob/living/carbon/metroid/powers.dm +++ b/code/modules/mob/living/carbon/metroid/powers.dm @@ -131,23 +131,26 @@ canmove = 1 anchored = 0 - if(M.health <= -70) - M.canmove = 0 - if(!client) - if(Victim && !rabid && !attacked) - if(Victim.LAssailant && Victim.LAssailant != Victim) - if(prob(50)) - if(!(Victim.LAssailant in Friends)) - Friends.Add(Victim.LAssailant) // no idea why i was using the |= operator + if(M) + if(M.health <= -70) + M.canmove = 0 + if(!client) + if(Victim && !rabid && !attacked) + if(Victim.LAssailant && Victim.LAssailant != Victim) + if(prob(50)) + if(!(Victim.LAssailant in Friends)) + Friends.Add(Victim.LAssailant) // no idea why i was using the |= operator - if(M.client && istype(src, /mob/living/carbon/human)) - if(prob(85)) - rabid = 1 // UUUNNBGHHHH GONNA EAT JUUUUUU + if(M.client && istype(src, /mob/living/carbon/human)) + if(prob(85)) + rabid = 1 // UUUNNBGHHHH GONNA EAT JUUUUUU - if(client) src << "This subject does not have a strong enough life energy anymore..." + if(client) src << "This subject does not have a strong enough life energy anymore..." + else + M.canmove = 1 + + if(client) src << "I have stopped feeding..." else - M.canmove = 1 - if(client) src << "I have stopped feeding..." Victim = null