-----------------------------------
-- Heavy Armature
-- Adds buffs Haste, Shell, Protect, Blink
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
-----------------------------------
local mobskill_object = {}

mobskill_object.onMobSkillCheck = function(target, mob, skill)
    if mob:getPool() == 243 then
        return 0
    else
        return 1
    end
end

mobskill_object.onMobWeaponSkill = function(target, mob, skill)
    -- Not much info on how much haste this gives. Supposed to be "high". Went with Magic Haste Cap
    MobBuffMove(mob, tpz.effect.HASTE, 4375, 0, 180)
    MobBuffMove(mob, tpz.effect.PROTECT, 100, 0, 180)
    skill:setMsg(MobBuffMove(mob, tpz.effect.BLINK, math.random(10, 25), 0, 120))

    return tpz.effect.BLINK
end

return mobskill_object
