ID:179655
 
Ok, I have the code for the healing spell. The healing works fine, but it does it on other players instead of yourself, can anyone help me, here is my code:


mob/proc/SoulFire(mob/M as mob in oview(1000))
set category = "Spells"
if(usr.MP<=10)
usr<<"You don't have enough MP"
else
usr<<"You summon your power...."
usr.overlays+=/obj/overlays/SoulFireStart
sleep(50)
usr.overlays-=/obj/overlays/SoulFireStart
sleep(1)
M.HP=M.MaxHP
usr.MP-=10
Change oview() to view()


oview() -- All within the view excluding the tile the user is on.

view() -- Same as oview() except it includes the tile the user is on.
In response to Nadrew
Ok that works great, thanks