---------------------------------------------
--  Light of Penance
--
--  Description: Reduces an enemy's TP. Additional effect: Blindness and "Bind".
--  Type: Magical (Light)
---------------------------------------------

require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");

---------------------------------------------
function OnMobSkillCheck(target,mob,skill)
	return 0;
end;

function OnMobWeaponSkill(target, mob, skill)
	local tpReduced = 0;
	target:setTP(tpReduced);

	MobGazeMove(mob, target, EFFECT_BLINDNESS, 20, 0, 120);

	MobGazeMove(mob, target, EFFECT_BIND, 1, 0, 30);

	skill:setMsg(MSG_TP_REDUCED);

	return tpReduced;
end;
