;'SG - Guardian's Protection' - timed script

SkillID = 45
UserID = #PARAM1
DecreaseAmount = GetUserSkill(UserID, SkillID)

If GetUserSkill(UserID, SkillID) = 1
	GoTo END
EndIf

SendMessageToUser(UserID,"Your endurance returns to normal.",#MSG_EMOTE)

SetUserEnduranceBonus(UserID,GetUserEnduranceBonus(UserID)-DecreaseAmount)
SetUserSkill(UserID,SkillID,1)

Label END

Continue = 1