-----------------------------------
-- Area: Full Moon Fountain
-- Mob: Garuda Prime
-- Quest: Waking the Beast
-- Note: most of the logic for this mob (such as spawning and 2hr) is handled
-- in the full moon fountain waking_the_beast battlefield file
-----------------------------------
local ID = zones[xi.zone.FULL_MOON_FOUNTAIN]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.onMobSpawn = function(mob)
    mob:setMod(xi.mod.UDMGPHYS, -6000)
    mob:setMod(xi.mod.UDMGRANGE, -6000)
    mob:setMod(xi.mod.UDMGMAGIC, -2000)
    mob:setMod(xi.mod.WIND_ABSORB, 100)
    mob:addImmunity(xi.immunity.GRAVITY)
    mob:addImmunity(xi.immunity.BIND)
    mob:addImmunity(xi.immunity.SILENCE)
    mob:addImmunity(xi.immunity.STUN)
    mob:addImmunity(xi.immunity.LIGHT_SLEEP)
    mob:addImmunity(xi.immunity.DARK_SLEEP)
    mob:addImmunity(xi.immunity.TERROR)
    -- element specific immunities
    mob:addImmunity(xi.immunity.SLOW)
end

entity.onMobDeath = function(mob, player, optParams)
    if player then
        player:showText(mob, ID.text.BASELESS_TIES)
    end
end

return entity
