ID:179638
 
I am wonder how i could make the spell hurt Hit
magic()
switch(input("What speel would you like to use")in list("Heal","Hurt"))
if("Heal")
if(usr.MP>=4)
if(usr.HP>=usr.MAXHP-10)
usr.HP=usr.MAXHP
else
usr.HP+=10
else
alert("You need more magic.")
if("Hurt")
if(usr.MP>=2)
var/Hurt=usr.MagicPower/2
src.HP-=Hurt
I dont know what i should put in the spell hurt to hurt the src
I am usring Zagreus's random combat system
Take a look at Nadrew's spell system