---------------------------------------------
--  Bad Breath
--
--  Description: Deals earth damage that inflicts multiple status ailments on enemies within a fan-shaped area originating from the caster.
--  Type: Magical (Earth)
--
--
---------------------------------------------
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)

	MobStatusEffectMove(mob, target, EFFECT_SLOW, 128, 0, 60);

	MobStatusEffectMove(mob, target, EFFECT_POISON, (mob:getMainLvl()/10), 3, 60);
	MobStatusEffectMove(mob, target, EFFECT_SILENCE, 1, 0, 60);
	MobStatusEffectMove(mob, target, EFFECT_PARALYSIS, 15, 0, 60);
	MobStatusEffectMove(mob, target, EFFECT_BIND, 1, 0, 30);
	MobStatusEffectMove(mob, target, EFFECT_BLINDNESS, 15, 0, 60);
	MobStatusEffectMove(mob, target, EFFECT_WEIGHT, 50, 0, 60);

	local dmgmod = MobBreathMove(mob, target, 0.15, 3, ELE_EARTH, 500);

	local dmg = MobFinalAdjustments(dmgmod,mob,skill,target,MOBSKILL_BREATH,MOBPARAM_EARTH,MOBPARAM_IGNORE_SHADOWS);
	target:delHP(dmg);
	return dmg;
end;
