User Tools

Site Tools


mr:heal_spell

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

<string name="Heal_Name">Heal</string>
<string name="Heal_Info">Restores HP to target. Higher level targets gain more HP.</string>
<string name="Heal_Gender">neuter</string>

Lua Scripts

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

mr/heal_spell.txt · Last modified: by 127.0.0.1