----------------------------------- -- ID: 4566 -- Item: Deathball -- Food Effect: 3 Mins, All Races -- Poison 2HP / 3Tic ----------------------------------- ---@type TItemFood local itemObject = {} itemObject.onItemCheck = function(target, item, caster) return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC) end itemObject.onItemUse = function(target, user, item, action) target:addStatusEffect(xi.effect.FOOD, { duration = 180, origin = user, sourceType = xi.effectSourceType.FOOD, sourceTypeParam = item:getID() }) if not target:hasStatusEffect(xi.effect.POISON) then target:addStatusEffect(xi.effect.POISON, { power = 2, duration = 180, origin = user, tick = 3 }) else target:messageBasic(xi.msg.basic.NO_EFFECT) end end return itemObject