---------------------------------------------
--  Chemical_Bomb
--
--  Description: slow+ elegy

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

---------------------------------------------
function OnMobSkillCheck(target,mob,skill)
 local mobID = mob:getID();   --(16908295 ,16908302 ,16908309 =omega ,          16928966=proto-ultima   )
 local mobhp = mob:getHPP();
   if (mobID == 16928966)then
      if(mobhp > 60)then
	     return 0;
	  end
   elseif(mobID == 16908295 or mobID == 16908302 or mobID == 16908309)then
      if(mobhp > 70)then
	     return 0;
	  end	  
   end
   return 1;
end;

function OnMobWeaponSkill(target, mob, skill)
    local typeEffect0 = EFFECT_ELEGY;
    local typeEffect1 = EFFECT_SLOW;
        skill:setMsg(MobStatusEffectMove(mob, target, typeEffect0, 1, 0,30));
        skill:setMsg(MobStatusEffectMove(mob, target, typeEffect1, 1, 0,30));
    return typeEffect1;
end;
