PHP Code:
if (action == "hurt") { //a spell that hurts a player
if (cast == "projectile") { //a hurt spell that is a projectile
freezePlayer(freeze);
setani("grab",null); //placeholder
sleep(freeze);
setShootParams("spell","hurt",power,player.account,player.guild);
temp.angle = getangle(vecx(player.dir),vecy(player.dir)); //shoots in a straight line
shoot(player.x+vecx(player.dir),player.y+vecy(player.dir),player.z,angle,0,0,ani,null);
}
}
Had the second param in setShotParams as "heal" instead of "hurt".