---------------------------------------------
--  Photosynthesis
--
--  Description: Adds a Regen effect.
--  Type: Enhancing
--  Utsusemi/Blink absorb: N/A
--  Range: Self
--  Notes: Only available during daytime.
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");

---------------------------------------------
function OnMobSkillCheck(target,mob,skill)
    -- only used during daytime
    local currentTime = VanadielHour();
    if(currentTime >= 6 and currentTime <= 18) then
        return 0;
    end
    return 1;
end;

function OnMobWeaponSkill(target, mob, skill)
    local power = mob:getMainLvl()/10 * 4 + 5;
	local duration = 30;

	local typeEffect = EFFECT_REGEN;
    skill:setMsg(MobBuffMove(mob, typeEffect, power, 0, duration));
	return typeEffect;
end;
