(now with different runes)
Here's a party healing spell I created... it requires Spellcraft level 24, costs 20 mana and heals 1.5 to 2 times the skill of the caster to all party members.
Code: Select all
-- Party Healing spell
defineSpell{
name = "healing",
uiName = "Healing",
skill = "spellcraft",
level = 24,
runes = "BEF",
manaCost = 20,
onCast = function(caster, x, y, direction, skill)
local heal_amount = math.random(6,8)/4*skill
for i=1,4 do
party:getChampion(i):modifyStat("health", heal_amount)
end
playSound("heal_party")
party:playScreenEffect("frostburst")
hudPrint(caster:getName() .. " healed the party by " .. heal_amount .. " points")
end,
}
-------------------------------------------------------------
EDIT BY KOMAG:
For reference to others reading this thread, here is a little pic that shows the rune letters: