-----------------------------------
-- Area: Quicksand Caves
--   NM: Centurio IV-VII
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
local ID = require("scripts/zones/Quicksand_Caves/IDs")
mixins = {require("scripts/mixins/job_special")}
-----------------------------------
local entity = {}

entity.onMobDisengage = function(mob)
    DespawnMob(mob:getID(), 120)
end

entity.onMobDeath = function(mob, player, isKiller)
    if isKiller and GetMobByID(ID.mob.TRIARIUS_IV_XIV):isDead() and GetMobByID(ID.mob.PRINCEPS_IV_XLV):isDead() then
        GetNPCByID(ID.npc.CHAINS_THAT_BIND_US_QM):setLocalVar("cooldown", os.time() + 300)
    end
end

return entity
