class 1 warrior_corpse_ghost_basic : warrior
{
parameter:
	int	SelfBuff = 1031169;

handler:
	EventHandler CREATED()
	{
		myself::AddTimerEx(2001,10000);
		if( myself::Skill_GetConsumeMP(SelfBuff) < myself.sm.mp && myself::Skill_GetConsumeHP(SelfBuff) < myself.sm.hp && myself::Skill_InReuseDelay(SelfBuff) == 0 )
		{
			myself::AddUseSkillDesire(myself.sm,SelfBuff,1,1,1000000);
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id)
	{
		if( timer_id == 2001 )
		{
			if( myself::GetAbnormalLevel(myself.sm,myself::Skill_GetAbnormalType(SelfBuff)) <= 0 && myself.p_state != 3 )
			{
				if( myself::Skill_GetConsumeMP(SelfBuff) < myself.sm.mp && myself::Skill_GetConsumeHP(SelfBuff) < myself.sm.hp && myself::Skill_InReuseDelay(SelfBuff) == 0 )
				{
					myself::AddUseSkillDesire(myself.sm,SelfBuff,1,1,1000000);
				}
			}
			myself::AddTimerEx(2001,10000);
		}
		super;
	}

}
