k
This commit is contained in:
@@ -295,7 +295,7 @@
|
||||
if(!iscarbon(src))
|
||||
M.LAssailant = null
|
||||
else
|
||||
M.LAssailant = usr
|
||||
M.LAssailant = WEAKREF(src)
|
||||
if(isliving(M))
|
||||
var/mob/living/L = M
|
||||
//Share diseases that are spread by touch
|
||||
|
||||
@@ -186,12 +186,13 @@
|
||||
if(M.stat == DEAD) // our victim died
|
||||
if(!client)
|
||||
if(!rabid && !attacked)
|
||||
if(M.LAssailant && M.LAssailant != M)
|
||||
var/mob/living/carbon/their_attacker = M.getLAssailant()
|
||||
if(their_attacker != M)
|
||||
if(prob(50))
|
||||
if(!(M.LAssailant in Friends))
|
||||
Friends[M.LAssailant] = 1
|
||||
if(!(their_attacker in Friends))
|
||||
Friends[their_attacker] = 1
|
||||
else
|
||||
++Friends[M.LAssailant]
|
||||
++Friends[their_attacker]
|
||||
else
|
||||
to_chat(src, "<i>This subject does not have a strong enough life energy anymore...</i>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user