-----------------------------------
-- Area: Giddeus (145)
--   NM: Juu Duzu the Whirlwind
-----------------------------------
mixins = { require('scripts/mixins/job_special') }
-----------------------------------
local ID = zones[xi.zone.GIDDEUS]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x =  116.667, y = -3.442, z = -261.079 },
    { x =   85.728, y = -0.071, z = -248.141 },
    { x =   99.902, y = -2.725, z = -213.337 },
    { x =   81.263, y =  0.498, z = -208.812 },
    { x =   72.302, y =  0.642, z = -202.985 },
    { x =   20.353, y = -3.647, z = -169.309 },
    { x =   68.761, y =  0.904, z = -211.304 },
    { x =   98.423, y = -1.553, z = -258.262 },
    { x =   77.179, y =  0.981, z = -217.145 },
    { x =  106.466, y = -2.803, z = -259.790 },
    { x =   83.523, y =  0.972, z = -235.813 },
    { x =   87.931, y =  0.251, z = -250.830 },
    { x =   91.396, y = -0.255, z = -213.945 },
    { x =  100.322, y = -2.576, z = -238.886 },
    { x =   83.680, y =  0.508, z = -210.692 },
    { x =   79.370, y =  1.000, z = -245.099 },
    { x =   75.031, y =  1.013, z = -226.248 },
    { x =  102.111, y = -2.324, z = -258.433 },
    { x =   91.971, y = -0.695, z = -217.808 },
    { x =   85.543, y =  0.588, z = -240.108 },
    { x =   95.280, y = -1.475, z = -210.071 },
    { x =   77.476, y =  0.995, z = -249.848 },
    { x =   80.260, y =  1.000, z = -237.171 },
    { x =   87.965, y =  0.118, z = -221.204 },
    { x =  105.120, y = -2.621, z = -259.720 },
    { x =   72.194, y =  1.000, z = -199.289 },
    { x =   67.597, y =  1.110, z = -193.985 },
    { x =   91.898, y = -0.348, z = -214.735 },
    { x =   88.591, y = -0.203, z = -213.568 },
    { x =  114.599, y = -3.205, z = -260.306 },
    { x =   89.640, y = -0.435, z = -196.649 },
    { x =   78.828, y =  1.000, z = -232.194 },
    { x =   72.863, y =  1.229, z = -209.371 },
    { x =   79.036, y =  1.000, z = -237.689 },
    { x =   96.717, y = -1.682, z = -253.027 },
    { x =  109.368, y = -2.901, z = -261.239 },
    { x =  117.596, y = -3.142, z = -260.097 },
    { x =   75.151, y =  0.760, z = -221.583 },
    { x =   79.597, y =  1.000, z = -242.360 },
    { x =  115.657, y = -3.235, z = -259.842 },
    { x =   83.976, y =  0.980, z = -215.795 },
    { x =  103.036, y = -2.240, z = -259.109 },
    { x =   84.452, y =  0.776, z = -222.910 },
    { x =   86.024, y =  0.539, z = -218.517 },
    { x =   98.235, y = -1.421, z = -257.932 },
    { x =   85.275, y =  0.652, z = -241.830 },
    { x =   79.540, y =  1.000, z = -231.830 },
    { x =   71.358, y =  0.954, z = -204.007 },
    { x =   66.188, y =  0.995, z = -213.435 },
    { x =   93.085, y = -0.645, z = -206.047 }
}

entity.phList =
{
    [ID.mob.JUU_DUZU_THE_WHIRLWIND + 233] = ID.mob.JUU_DUZU_THE_WHIRLWIND, -- 85.728 -0.071 -248.141
    [ID.mob.JUU_DUZU_THE_WHIRLWIND + 229] = ID.mob.JUU_DUZU_THE_WHIRLWIND, -- 72.302 0.642 -202.985
    [ID.mob.JUU_DUZU_THE_WHIRLWIND + 219] = ID.mob.JUU_DUZU_THE_WHIRLWIND, -- 20.353 -3.647 -169.309
    [ID.mob.JUU_DUZU_THE_WHIRLWIND + 225] = ID.mob.JUU_DUZU_THE_WHIRLWIND, -- 81.263 0.498 -208.812
    [ID.mob.JUU_DUZU_THE_WHIRLWIND - 9]   = ID.mob.JUU_DUZU_THE_WHIRLWIND, -- 99.902 -2.725 -213.337
    [ID.mob.JUU_DUZU_THE_WHIRLWIND - 2]   = ID.mob.JUU_DUZU_THE_WHIRLWIND, -- 116.667 -3.442 -261.079
}

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

return entity
