Ok I made this spell
obj/magic/Heal1
name = "Minor Healing"
icon = 'Spellicons.dmi'
icon_state = "Recovery"
Click()
set category = "Magic"
if(usr.MP>=2)
if(usr.Casting == 1)
usr<< "You cannot perform this action now because you are currently casting a spell!"
else
for(var/mob/M in view())
usr.MP-=2
usr.Casting = 1
usr.overlays += (icon('SpellAnimation.dmi',,icon_state="Casting"))
sleep(10)
usr.Casting = 0
usr.overlays -= (icon('SpellAnimation.dmi',,icon_state="Casting"))
M.overlays += (icon('SpellAnimation.dmi',,icon_state="Heal"))
sleep(10)
var/heal = rand(5,18)
M.HP += heal
var/colour = "white"
s_damage(M,heal,colour)
view() << "[usr] heals [M] for [heal]!"
M.overlays -= (icon('SpellAnimation.dmi',,icon_state="Heal"))
else
usr << "You dont not have enough MP!"
It works well but I want the usr to have to pick the mob he/she wants to heal and not all of them
ID:173698
Nov 29 2003, 3:21 am
|
|