-----------------------------------
-- Area: The Ashu Talif (Against All Odds)
--  Mob: Yazquhl
-----------------------------------
require("scripts/globals/status")
local ID = require("scripts/zones/The_Ashu_Talif/IDs")
mixins = {require("scripts/mixins/job_special")}
-----------------------------------

function onMobSpawn(mob)
    mob:addMod(dsp.mod.SLEEPRES, 150)
    mob:addMod(dsp.mod.SILENCERES, 150)
    mob:addListener("WEAPONSKILL_STATE_ENTER", "WS_START_MSG", function(mob, skillID)
        -- Vorpal Blade
        if skillId == 40 then
            mob:showText(mob,ID.text.TAKE_THIS)
        -- Circle Blade
        elseif skillId == 38 then
            mob:showText(mob,ID.text.REST_BENEATH)
        -- Savage Blade
        elseif skillId == 35 then
            mob:showText(mob,ID.text.STOP_US)
        end
    end)
end

function onMobDeath(mob, player, isKiller)
    mob:showText(mob,ID.text.YAZQUHL_DEATH)
end

function onMobDespawn(mob)
    local instance = mob:getInstance()
    instance:setProgress(instance:getProgress() + 1)
end
