class 1 agit_wizard : agit_warrior
{
parameter:

handler:
	EventHandler ATTACKED(attacker,damage,skill_name_id,i0)
	{
		if( myself::IsInCategory(11,attacker.npc_class_id) != 0 && attacker.master.pledge_id == myself.sm.pledge_id )
		{
		}
		else if( attacker.pledge_id != myself.sm.pledge_id || attacker.pledge_id == 0 )
		{
			if( attacker.is_pc == 1 )
			{
				myself::AddAttackDesire(attacker,1,( ( ( damage / myself.sm.max_hp ) / 0.050000 ) * 100 ));
			}
			else
			{
				myself::AddAttackDesire(attacker,1,( ( ( damage / myself.sm.max_hp ) / 0.050000 ) * 10 ));
			}
			if( gg::Rand(100) < 10 )
			{
				if( myself::Skill_GetConsumeMP(1043718) < myself.sm.mp && myself::Skill_GetConsumeHP(1043718) < myself.sm.hp && myself::Skill_InReuseDelay(1043718) == 0 )
				{
					myself::AddUseSkillDesire(attacker,1043718,0,1,1000000);
				}
			}
		}
	}

}
