====== Heal Spell - Code References ======
===== Java Classes =====
This entity is implemented in Lua, no Java class exists
===== JSON Configuration =====
This entity is implemented in Lua, no JSON configuration exists
===== String Resources =====
Heal
Restores HP to target. Higher level targets gain more HP.
neuter
===== Lua Scripts =====
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/Heal.lua|Heal.lua]]
===== Spell Properties (from Heal.lua) =====
* ''magicAffinity = "Witchcraft"''
* ''targetingType = "char"''
* ''level = 2''
* ''castTime = 1''
* ''spellCost = 5''
* ''cooldown = 2''
===== Spell Implementation =====
castOnChar = function(self, spell, caster, target)
if target then
local heal = target:ht() / 5. * caster:skillLevel()
target:heal(math.max(1, heal), caster)
end
return true
end
===== Related mr Entities =====
* [[mr:mage_class|Mage (Class)]]
* [[mr:warlock_armor_item|Warlock (Subclass)]]
* [[mr:witchcraft_affinity|Witchcraft (Magic Affinity)]]