-----------------------------------
-- Crystaline Cocoon
-- Family: Aern
-- Type: Enhancing
-- Can be dispelled: Yes
-- Utsusemi/Blink absorb: N/A
-- Range: Self
-- Notes:
-----------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
-----------------------------------
local mobskill_object = {}

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

mobskill_object.onMobWeaponSkill = function(target, mob, skill)
    local typeEffect1 = tpz.effect.PROTECT
    local typeEffect2 = tpz.effect.SHELL
    local power1 = 50
    local power2 = 20
    local duration = 300

    skill:setMsg(MobBuffMove(mob, typeEffect1, power1, 0, duration))
    MobBuffMove(mob, typeEffect2, power2, 0, duration)

    return typeEffect1
end

return mobskill_object
