-----------------------------------
-- Ability: Afflatus Solace
-- Inspires you to draw strength from the healing spells you cast.
-- Obtained: White Mage Level 40
-- Recast Time: 1:00
-- Duration: 2 hours
-----------------------------------
require("scripts/globals/status")
-----------------------------------
local ability_object = {}

ability_object.onAbilityCheck = function(player, target, ability)
    return 0, 0
end

ability_object.onUseAbility = function(player, target, ability)
    target:delStatusEffect(tpz.effect.AFFLATUS_SOLACE)
    target:delStatusEffect(tpz.effect.AFFLATUS_MISERY)
    target:addStatusEffect(tpz.effect.AFFLATUS_SOLACE, 8, 0, 7200)
end

return ability_object
