ID:139042
 
Code:
mob/proc
death(mob/M,bury=0)
if(clan=="Uchiha"&&M.clan=="Uchiha"&&skillclanjutsu1>=5&&M.skillclanjutsu1>=5)
if(hp<=0)
M<<output("<b>You have had your eyes stolen!","infobox")
if(M.skillclanjutsu1==6)
del/obj/jutsu/uchiha/Eternal_Mangekyou_Sharingan
M.skillclanjutsu1=5
M.blind=100


Problem description:

There is two parts to this code but this is the part that has the problem.
the first part allows the person with the req to kill someone of the clan==Uchiha and gain the skill Eternal mangekyou.

now this part is to controll when the loser dies. When the loser dies it doesnt say to them. their eyes were stolen. and it doesnt make them lose the skill. And also it keeps letting their hp drop bellow zero even though its in the death proc. would i need to make a whole seperate check proc for this type of death and add death to it?

You're checking the attacker's health with:

if(hp<=0)

It should be M.hp.
In response to Robertbanks2
thanks after you said that. it came to mind to do a few more things and then it seems to be working properly now