-----------------------------------
--  Whistle
--
--  Description: Increases agility.
--  Type: Enhancing
--  Utsusemi/Blink absorb: N/A
--  Range: Self
--  Notes: When used by the Nightmare Dhalmel in Dynamis - Buburimu, it grants an Evasion Boost instead.
-----------------------------------
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 power = target:getMainLvl()/10 * 3.75 + 5
    local duration = 60

    local typeEffect = tpz.effect.AGI_BOOST

    skill:setMsg(MobBuffMove(target, typeEffect, power, 3, duration))

    return typeEffect
end

return mobskill_object
