-----------------------------------
-- Area: Labyrinth of Onzozo
--   NM: Hellion
-----------------------------------
local ID = zones[xi.zone.LABYRINTH_OF_ONZOZO]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x =  136.566, y =  14.708, z =   70.077 },
    { x =  127.523, y =  14.327, z =  210.258 },
    { x =  137.662, y =  15.044, z =   68.198 },
    { x =  132.427, y =  13.764, z =  221.925 },
    { x =  131.612, y =  14.915, z =   68.578 },
    { x =  140.061, y =  13.093, z =   68.677 },
    { x =  128.496, y =  15.141, z =  217.623 },
    { x =  128.570, y =  12.499, z =  221.365 },
    { x =  123.981, y =  13.437, z =  214.425 },
    { x =  128.402, y =  15.068, z =  213.577 },
    { x =  124.405, y =  13.825, z =  210.447 },
    { x =  128.033, y =  15.222, z =  216.848 },
    { x =  128.546, y =  13.653, z =  219.044 },
    { x =  130.017, y =  15.369, z =  213.492 },
    { x =  135.085, y =  14.835, z =   68.326 },
    { x =  125.350, y =  13.307, z =  220.174 },
    { x =  139.221, y =  14.793, z =   67.060 },
    { x =  143.668, y =  13.742, z =   68.270 },
    { x =  138.063, y =  15.061, z =   69.150 },
    { x =  130.720, y =  15.000, z =   73.504 },
    { x =  138.323, y =  14.979, z =   68.793 },
    { x =  129.842, y =  15.313, z =  213.006 },
    { x =  124.822, y =  13.650, z =  214.696 },
    { x =  136.211, y =  14.834, z =   68.539 },
    { x =  136.166, y =  15.073, z =   73.341 },
    { x =  141.166, y =  14.459, z =   65.762 },
    { x =  130.664, y =  15.000, z =   73.709 },
    { x =  129.091, y =  15.151, z =  217.627 },
    { x =  135.159, y =  15.068, z =   72.570 },
    { x =  124.638, y =  13.588, z =  214.201 },
    { x =  135.993, y =  15.072, z =   73.379 },
    { x =  127.189, y =  14.233, z =  214.545 },
    { x =  140.076, y =  12.912, z =   73.387 },
    { x =  130.189, y =  15.184, z =  216.926 },
    { x =  134.697, y =  13.669, z =   75.385 },
    { x =  131.234, y =  14.962, z =  214.653 },
    { x =  132.261, y =  14.468, z =  220.397 },
    { x =  133.754, y =  15.069, z =   71.597 },
    { x =  129.429, y =  15.241, z =  209.857 },
    { x =  132.494, y =  14.490, z =  208.722 },
    { x =  129.060, y =  15.211, z =  210.283 },
    { x =  132.686, y =  15.181, z =   69.329 },
    { x =  126.588, y =  15.000, z =  210.803 },
    { x =  124.915, y =  13.793, z =  215.988 },
    { x =  141.016, y =  12.748, z =   71.440 },
    { x =  130.966, y =  15.242, z =   70.852 },
    { x =  125.739, y =  14.577, z =  211.568 },
    { x =  125.938, y =  13.905, z =  213.433 },
    { x =  136.873, y =  15.193, z =   71.101 },
    { x =  130.198, y =  15.400, z =   70.083 }
}

entity.phList =
{
    [ID.mob.HELLION + 2]  = ID.mob.HELLION, -- 136.566 14.708 70.077
    [ID.mob.HELLION + 15] = ID.mob.HELLION, -- 127.523 14.327 210.258
}

entity.onMobInitialize = function(mob)
    mob:setMobMod(xi.mobMod.ADD_EFFECT, 1)
end

entity.onAdditionalEffect = function(mob, target, damage)
    return xi.mob.onAddEffect(mob, target, damage, xi.mob.ae.ENDARK)
end

entity.onMobDeath = function(mob, player, optParams)
    xi.hunts.checkHunt(mob, player, 296)
end

return entity
