Dark magic=low mana cost, but costs HP to cast (of the entire party). Think "blood magic" sort of. Might give it area effect, ie several "damageTile" based around the caster. Sacrifice HP to do high damage all around you.
Here's the code I began to experiment with, but if I use the "damageTile"-line, the editor crashes.
(never mind the values, they're for testing)
name = "curse",
uiName = "Caliginous curse",
skill = "spellcraft",
level = 1,
runes = "DEF",
manaCost = 10,
onCast = function(party)
damageTile(party.level, party.x, party.y, party.facing, 1, "physical", 5)
playSound("level_up")
party:playScreenEffect("frostburst")
end,
}