-----------------------------------------
-- Spell: Stona
-- Removes petrification from target.
-----------------------------------------

require("scripts/globals/status");

-----------------------------------------
-- OnSpellCast
-----------------------------------------

function OnMagicCastingCheck(caster,target,spell)
	return 0;
end;

function onSpellCast(caster,target,spell)
	if(target:delStatusEffect(EFFECT_PETRIFICATION)) then
		spell:setMsg(83);
	else
		spell:setMsg(75);
	end
	return EFFECT_PETRIFICATION;
end;