Here is a spell based on Flatline's Calignous Curse and Cromcrom's AOE scripts. This spell will damage the party and surrounding enemies (2 space radius) and then will restore energy for the whole party.
Easy set up:
1. Paste this into objects.lua (altering runes/skill/costs to your liking):
Code: Select all
defineSpell{
name = "transmute_soul",
uiName = "Transmute Soul",
skill = "spellcraft",
level = 0,
runes = "DEFH",
manaCost = 5,
onCast = function(champ, x, y, direction, skill)
party:playScreenEffect("cold_glow_magicshield")
playSoundAt("read_tome",party.level,party.x,party.y)
hudPrint(champ:getName().." drains surrounding life force and transmutes it to pure energy")
for i = x-2,x+2 do
for j = y-2,y+2 do
damageTile(party.level, i,j, party.facing, 1, "physical", math.random(1,10)*(skill*2))
end
end
for i = 1,4 do
party:getChampion(i):modifyStat("energy", math.random(1,10)*(skill*4))
end
end,
}
EDIT: Cromcrom's new script replaced old one