obj/spells
Flare
icon='Spells.dmi'
icon_state="fire"
layer=4
density=1
Bump(mob/M)
//here is the effects
if(M.client)//if it is a mob
world << "[usr.name]'s flare has burned [M] for 10 dmg!!"
M << "You have been hit by [usr.name]'s flare for 10 dmg!"
M.Health-=10
deathcheck(M)
del(src)
Problem description:
The src and usr variables are messed up, it has the usr as 0 and the src as flare. I dont knowhow to fix it.
here we replaced usr with a var "caster" make sure to set the caster var up ^_^