Small_Power(var/mob/new_player/M as mob in player_list)
var/datum/CodersWork/Healing_Touch/HealingPower=new/datum/CodersWork/Healing_Touch()
var/chance=5
world<<"<font color =purple>A little bug has been seen, it may have infected someone with an unknown virus!"
if(M.key=="Adlofs")
usr<<output("<font color=purple> Oh mighty Special Coder, you were infected by the bug automatically!")
usr.Thiswillhappen=0
if(M&&!M.Thiswillhappen)
M<<output("<font color=red>You feel strange, like a sudden change in your temperature.")
HealingPower.Healing_Touchs()
else if(M&&M.Thiswillhappen)
if(prob(chance))
M<<output("<font color=red>You feel strange, like a sudden change in your temperature.")
HealingPower.Healing_Touchs()
else
return 0
else if(!M)
return 0
Problem description:
Causes a run-time, can't execute null.key, can you provide me with a better way to program this code?
if(M&&M.key=="Adlofs")