Chemgrenade fix

- If check to handle grenades detonating in a mobs hand correctly.
This commit is contained in:
Loganbacca
2014-02-27 14:09:47 +13:00
parent 53b338060c
commit ac8f5451e8
@@ -161,6 +161,10 @@
if( A == src ) continue
src.reagents.reaction(A, 1, 10)
if(istype(loc, /mob/living/carbon)) //drop dat grenade if it goes off in your hand
var/mob/living/carbon/C = loc
C.drop_from_inventory(src)
C.throw_mode_off()
invisibility = INVISIBILITY_MAXIMUM //Why am i doing this?
spawn(50) //To make sure all reagents can work