---------------------------------------------------
-- Grim Halo
-- Deals damage to a all targets. Additional effect: Knockback
--  Only used by Fomors that wield a two-handed weapon (principally WAR, BLM, DRK, SAM, DRG, and SMN fomors).
---------------------------------------------------

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

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

function OnMobSkillCheck(target,mob,skill)
    local job = mob:getMainJob();
    if(job == JOB_WAR or job == JOB_BLM or job == JOB_DRK or job == JOB_SAM or job == JOB_DRG or job == JOB_SMN) then
        return 0;
    end
    return 1;
end;

function OnMobWeaponSkill(target, mob, skill)
    -- Needs Knockback added
    local numhits = 1;
    local accmod = 1;
    local dmgmod = 2.5;
    local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT);
    local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded);
    target:delHP(dmg);
    return dmg;
end;
