-----------------------------------
-- Area: Bhaflau Thickets
--   NM: Mahishasura
-- !pos 206.510 -16.320 357.724 52
-----------------------------------
local ID = zones[xi.zone.BHAFLAU_THICKETS]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.phList =
{
    [ID.mob.MAHISHASURA - 10] = ID.mob.MAHISHASURA, -- 215.000 -18.000 372.000
}

entity.spawnPoints =
{
    { x = 184.508, y = -15.544, z = 361.913 },
    { x = 183.842, y = -15.500, z = 358.673 },
    { x = 185.699, y = -15.714, z = 355.744 },
    { x = 187.088, y = -16.500, z = 352.352 },
    { x = 188.999, y = -16.667, z = 348.534 },
    { x = 195.647, y = -19.231, z = 340.745 },
    { x = 196.885, y = -20.250, z = 333.920 },
    { x = 200.946, y = -20.504, z = 331.376 },
    { x = 201.907, y = -20.250, z = 334.709 },
    { x = 201.515, y = -19.578, z = 339.896 },
    { x = 200.183, y = -18.000, z = 345.025 },
    { x = 200.116, y = -17.096, z = 350.583 },
    { x = 197.738, y = -16.000, z = 358.015 },
    { x = 195.547, y = -15.973, z = 363.126 },
    { x = 195.396, y = -17.010, z = 369.291 },
    { x = 198.457, y = -18.000, z = 373.081 },
    { x = 202.406, y = -17.199, z = 369.695 },
    { x = 207.671, y = -16.593, z = 365.180 },
    { x = 212.900, y = -18.000, z = 356.692 },
    { x = 216.934, y = -19.256, z = 352.868 },
    { x = 217.174, y = -19.500, z = 349.820 },
    { x = 218.245, y = -19.500, z = 346.316 },
    { x = 224.295, y = -19.720, z = 345.830 },
    { x = 223.605, y = -19.500, z = 349.228 },
    { x = 220.650, y = -19.500, z = 353.628 },
    { x = 219.036, y = -19.179, z = 356.224 },
    { x = 216.350, y = -18.196, z = 360.474 },
    { x = 212.654, y = -17.961, z = 365.080 },
    { x = 207.554, y = -18.000, z = 375.283 },
    { x = 205.707, y = -19.293, z = 379.792 },
    { x = 207.694, y = -19.138, z = 386.147 },
    { x = 210.907, y = -19.000, z = 386.046 },
    { x = 214.264, y = -18.000, z = 379.866 },
    { x = 218.424, y = -18.000, z = 373.809 },
    { x = 220.615, y = -19.174, z = 366.502 },
    { x = 228.222, y = -20.342, z = 364.298 },
    { x = 227.940, y = -19.396, z = 368.624 },
    { x = 227.714, y = -18.489, z = 372.084 },
    { x = 227.759, y = -18.476, z = 375.141 },
    { x = 228.000, y = -18.519, z = 379.404 },
    { x = 226.754, y = -19.169, z = 383.488 },
    { x = 193.535, y = -16.487, z = 352.149 },
    { x = 200.873, y = -19.420, z = 340.371 },
    { x = 218.436, y = -19.500, z = 351.550 },
    { x = 205.192, y = -16.154, z = 361.770 },
    { x = 205.105, y = -18.012, z = 373.118 },
    { x = 218.766, y = -18.472, z = 368.404 },
    { x = 220.578, y = -19.500, z = 351.152 },
    { x = 202.651, y = -19.527, z = 339.946 },
    { x = 213.098, y = -18.000, z = 357.059 },
}

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

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

return entity
