-----------------------------------
-- ID: 18018
-- Item: Sirocco Kukri
-- Additional Effect: Wind Damage
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
local item_object = {}

item_object.onAdditionalEffect = function(player, target, damage)
    local dmg = math.random(3, 10)
    local params = {}
    params.bonusmab = 0
    params.includemab = false
    dmg = addBonusesAbility(player, tpz.magic.ele.WIND, target, dmg, params)
    dmg = dmg * applyResistanceAddEffect(player, target, tpz.magic.ele.WIND, 0)
    dmg = adjustForTarget(target, dmg, tpz.magic.ele.WIND)
    dmg = finalMagicNonSpellAdjustments(player, target, tpz.magic.ele.WIND, dmg)

    local message = tpz.msg.basic.ADD_EFFECT_DMG
    if (dmg < 0) then
        message = tpz.msg.basic.ADD_EFFECT_HEAL
    end

    return tpz.subEffect.WIND_DAMAGE, message, dmg
end

return item_object
