---------------------------------------------------
-- Slumber Powder
-- 10' AoE sleep
---------------------------------------------------

require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");

---------------------------------------------------

function OnMobSkillCheck(target,mob,skill)
    return 0;
end;

function OnMobWeaponSkill(target, mob, skill)
    local typeEffect = EFFECT_SLEEP_I;
    local power = math.random(15, 20) + mob:getMainLvl()/4;


    skill:setMsg(MobStatusEffectMove(mob, target, typeEffect, 1, 0, power));

    return typeEffect;
end;
