-----------------------------------
-- Goblin Dice
--
-- Description: Benediction for party members within area of effect.
-- Type: Magical (Wind)
--
--
-----------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------
local mobskill_object = {}

mobskill_object.onMobSkillCheck = function(target, mob, skill)
    return 0
end

mobskill_object.onMobWeaponSkill = function(target, mob, skill)
    local heal = target:getMaxHP() - target:getHP()

    skill:setMsg(tpz.msg.basic.SELF_HEAL)

    target:addHP(heal)
    target:wakeUp()

    return heal
end

return mobskill_object
