-----------------------------------
-- Attachment: Mana Channeler II
-----------------------------------
require("scripts/globals/status")
-----------------------------------

function onEquip(pet)
    pet:addMod(dsp.mod.MATT, 20)  -- Values unknown, best guess based on other attachment methods
    pet:addMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
end

function onUnequip(pet)
    pet:delMod(dsp.mod.MATT, 20)
    pet:delMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
end

function onManeuverGain(pet, maneuvers)
    if maneuvers == 1 then
        pet:addMod(dsp.mod.MATT, 10)
        pet:addMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
    elseif maneuvers == 2 then
        pet:addMod(dsp.mod.MATT, 10)
        pet:addMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
    elseif maneuvers == 3 then
        pet:addMod(dsp.mod.MATT, 10)
        pet:addMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
    end
end

function onManeuverLose(pet, maneuvers)
    if maneuvers == 1 then
        pet:delMod(dsp.mod.MATT, 10)
        pet:delMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
    elseif maneuvers == 2 then
        pet:delMod(dsp.mod.MATT, 10)
        pet:delMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
    elseif maneuvers == 3 then
        pet:delMod(dsp.mod.MATT, 10)
        pet:delMod(dsp.mod.AUTO_MAGIC_DELAY, -3)
    end
end