class 1 ai_gludio_bow_guard_stand : ai_gludio_stand
{
handler:
	EventHandler ATTACKED(attacker,damage)
	{
		if( myself::IsInCategory(11,attacker.npc_class_id) != 0 && myself::Castle_GetPledgeState(attacker.master) == 2 )
		{
		}
		else if( myself::Castle_GetPledgeState(attacker) != 2 )
		{
			if( attacker.is_pc != 0 || myself::IsInCategory(11,attacker.npc_class_id) )
			{
				myself::AddAttackDesire(attacker,0,( ( ( damage / myself.sm.max_hp ) / 0.050000 ) * 100 ));
			}
		}
	}

	EventHandler CLAN_ATTACKED(attacker,damage)
	{
		if( myself::IsInCategory(11,attacker.npc_class_id) != 0 && myself::Castle_GetPledgeState(attacker.master) == 2 )
		{
		}
		else if( myself::Castle_GetPledgeState(attacker) != 2 )
		{
			if( attacker.is_pc != 0 || myself::IsInCategory(11,attacker.npc_class_id) )
			{
				myself::AddAttackDesire(attacker,0,( ( ( damage / myself.sm.max_hp ) / 0.050000 ) * 50 ));
			}
		}
	}

	EventHandler SPELLED(speller,skill_name_id)
	{
		if( ( skill_name_id / 256 ) == ( 62976 / 256 ) )
		{
			if( myself::DistFromMe(speller) < 1000 )
			{
				myself::AddAttackDesire(speller,0,50000);
			}
		}
	}

}
