class 1 raid_boss_type4 : raid_boss_party
{
parameter:
	int	SelfRangeDebuff_a = -1;
	int	SelfRangeDebuffAnother_a = -1;
	int	DDMagic_a = -1;

handler:
	EventHandler TIMER_FIRED_EX(timer_id)
	{
		if( timer_id == 1001 )
		{
		}
		super;
	}

	EventHandler PARTY_ATTACKED(attacker,private,damage)
	{
		if( myself::IsNullCreature(myself.top_desire_target) == 0 )
		{
			if( attacker.is_pc != 0 || myself::IsInCategory(11,attacker.npc_class_id) )
			{
				if( myself::DistFromMe(attacker) < 150 && myself::DistFromMe(myself.top_desire_target) < 150 && myself::GetAbnormalLevel(attacker,myself::Skill_GetAbnormalType(SelfRangeDebuff_a)) == -1 && myself::GetAbnormalLevel(myself.top_desire_target,myself::Skill_GetAbnormalType(SelfRangeDebuff_a)) == -1 && attacker != myself.top_desire_target && gg::Rand(2) < 1 )
				{
					myself::AddUseSkillDesire(myself.sm,SelfRangeDebuff_a,0,1,1000000);
				}
				if( myself::DistFromMe(attacker) < 150 && myself::DistFromMe(myself.top_desire_target) < 150 && myself::GetAbnormalLevel(attacker,myself::Skill_GetAbnormalType(SelfRangeDebuffAnother_a)) == -1 && myself::GetAbnormalLevel(myself.top_desire_target,myself::Skill_GetAbnormalType(SelfRangeDebuffAnother_a)) == -1 && attacker != myself.top_desire_target && gg::Rand(5) < 1 )
				{
					myself::AddUseSkillDesire(myself.sm,SelfRangeDebuffAnother_a,0,1,1000000);
				}
			}
			if( ( attacker.is_pc != 0 || myself::IsInCategory(11,attacker.npc_class_id) ) && gg::Rand(( 5 * 15 )) < 1 )
			{
				myself::AddUseSkillDesire(attacker,DDMagic_a,0,1,1000000);
			}
		}
		super;
	}

	EventHandler SEE_SPELL(speller,skill_name_id)
	{
		if( myself::IsNullCreature(myself.top_desire_target) == 0 )
		{
			if( speller.is_pc != 0 || myself::IsInCategory(11,speller.npc_class_id) )
			{
				if( myself::DistFromMe(speller) < 150 && myself::DistFromMe(myself.top_desire_target) < 150 && myself::GetAbnormalLevel(speller,myself::Skill_GetAbnormalType(SelfRangeDebuff_a)) == -1 && myself::GetAbnormalLevel(myself.top_desire_target,myself::Skill_GetAbnormalType(SelfRangeDebuff_a)) == -1 && speller != myself.top_desire_target && gg::Rand(2) < 1 )
				{
					myself::AddUseSkillDesire(myself.sm,SelfRangeDebuff_a,0,1,1000000);
				}
				if( myself::DistFromMe(speller) < 150 && myself::DistFromMe(myself.top_desire_target) < 150 && myself::GetAbnormalLevel(speller,myself::Skill_GetAbnormalType(SelfRangeDebuffAnother_a)) == -1 && myself::GetAbnormalLevel(myself.top_desire_target,myself::Skill_GetAbnormalType(SelfRangeDebuffAnother_a)) == -1 && speller != myself.top_desire_target && gg::Rand(5) < 1 )
				{
					myself::AddUseSkillDesire(myself.sm,SelfRangeDebuffAnother_a,0,1,1000000);
				}
			}
			if( ( speller.is_pc != 0 || myself::IsInCategory(11,speller.npc_class_id) ) && gg::Rand(( 5 * 15 )) < 1 )
			{
				myself::AddUseSkillDesire(speller,DDMagic_a,0,1,1000000);
			}
		}
		super;
	}

}
