-----------------------------------
-- Area: Bhaflau Thickets
--   NM: Nis Puk
-- !pos -155.319 -15.959 -599.366 52
-----------------------------------
local ID = zones[xi.zone.BHAFLAU_THICKETS]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.phList =
{
    [ID.mob.NIS_PUK - 20] = ID.mob.NIS_PUK, -- -135 -18 -648
    [ID.mob.NIS_PUK - 19] = ID.mob.NIS_PUK, -- -104 -18 -636
    [ID.mob.NIS_PUK - 18] = ID.mob.NIS_PUK, -- -123 -16 -638
    [ID.mob.NIS_PUK - 12] = ID.mob.NIS_PUK, -- -106 -16 -613
    [ID.mob.NIS_PUK - 11] = ID.mob.NIS_PUK, -- -109 -15 -600
    [ID.mob.NIS_PUK - 10] = ID.mob.NIS_PUK, -- -128 -15 -602
    [ID.mob.NIS_PUK - 9]  = ID.mob.NIS_PUK, -- -132 -16 -612
    [ID.mob.NIS_PUK - 5]  = ID.mob.NIS_PUK, -- -119 -15 -651
}

entity.spawnPoints =
{
    { x = -156.549, y = -15.719, z = 587.482 },
    { x = -154.956, y = -15.750, z = 591.340 },
    { x = -155.416, y = -15.902, z = 594.976 },
    { x = -158.182, y = -16.000, z = 597.380 },
    { x = -163.179, y = -16.000, z = 598.084 },
    { x = -170.152, y = -15.750, z = 598.993 },
    { x = -169.498, y = -15.764, z = 603.996 },
    { x = -168.202, y = -17.481, z = 611.691 },
    { x = -163.155, y = -18.654, z = 617.593 },
    { x = -162.491, y = -20.250, z = 625.975 },
    { x = -158.111, y = -20.332, z = 628.107 },
    { x = -156.506, y = -19.569, z = 620.302 },
    { x = -152.708, y = -17.645, z = 612.113 },
    { x = -149.756, y = -15.879, z = 604.601 },
    { x = -148.586, y = -15.750, z = 599.614 },
    { x = -148.439, y = -15.764, z = 595.439 },
    { x = -143.268, y = -15.534, z = 596.005 },
    { x = -144.875, y = -15.556, z = 599.078 },
    { x = -147.688, y = -15.896, z = 604.456 },
    { x = -149.622, y = -16.500, z = 609.757 },
    { x = -153.106, y = -17.841, z = 613.521 },
    { x = -156.287, y = -18.803, z = 617.972 },
    { x = -159.703, y = -20.250, z = 624.505 },
    { x = -162.975, y = -20.250, z = 627.105 },
    { x = -154.585, y = -20.078, z = 627.524 },
    { x = -149.719, y = -19.723, z = 626.392 },
    { x = -147.271, y = -18.250, z = 621.657 },
    { x = -146.613, y = -16.756, z = 617.179 },
    { x = -145.576, y = -16.500, z = 613.037 },
    { x = -142.362, y = -15.784, z = 604.881 },
    { x = -142.726, y = -15.500, z = 601.845 },
    { x = -143.378, y = -15.500, z = 598.600 },
    { x = -142.803, y = -15.824, z = 594.981 },
    { x = -137.649, y = -15.625, z = 595.691 },
    { x = -138.591, y = -15.500, z = 599.028 },
    { x = -138.929, y = -15.500, z = 603.542 },
    { x = -139.663, y = -16.605, z = 607.870 },
    { x = -139.960, y = -16.500, z = 611.522 },
    { x = -140.445, y = -16.500, z = 615.173 },
    { x = -139.536, y = -16.906, z = 617.720 },
    { x = -141.164, y = -18.082, z = 619.978 },
    { x = -143.669, y = -18.230, z = 623.435 },
    { x = -146.345, y = -18.856, z = 626.763 },
    { x = -148.569, y = -19.643, z = 629.675 },
    { x = -148.851, y = -20.048, z = 632.107 },
    { x = -143.912, y = -19.468, z = 630.766 },
    { x = -140.271, y = -18.018, z = 621.369 },
    { x = -134.339, y = -16.331, z = 608.987 },
    { x = -130.931, y = -15.750, z = 601.784 },
    { x = -132.564, y = -15.716, z = 597.294 },
}

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.ENAERO)
end

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

return entity
