class 1 warrior_corpse_vampire_mobhate : warrior_corpse_vampire
{
parameter:
	int	DDMagic2 = 1062657;

handler:
	EventHandler CLAN_ATTACKED(attacker,damage)
	{
		if( ( myself::GetLifeTime() > 7 && ( attacker.is_pc != 0 || myself::IsInCategory(11,attacker.npc_class_id) ) ) && myself.p_state == 3 )
		{
			if( myself::DistFromMe(attacker) < 100 && gg::Rand(100) < 33 )
			{
				if( myself::Skill_GetConsumeMP(DDMagic2) < myself.sm.mp && myself::Skill_GetConsumeHP(DDMagic2) < myself.sm.hp && myself::Skill_InReuseDelay(DDMagic2) == 0 )
				{
					myself::AddUseSkillDesire(attacker,DDMagic2,0,1,1000000);
				}
			}
		}
		super;
	}

}
