@LabelIndex 16479
@StringIndex 0
class 0 party_private_casting_curse : party_private {
parameter:
	int	DeBuff = 264568833;

handler:
	EventHandler ATTACKED(attacker,damage) {
		if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
			if( myself::IsNullCreature(myself.top_desire_target) == 0 ) {
				if( gg::Rand(100) < 33 && gg::GetAbnormalLevel(attacker,myself::Skill_GetAbnormalType(DeBuff)) <= 0 && myself.top_desire_target == attacker ) {
					if( myself::Skill_GetConsumeMP(DeBuff) < myself.sm.mp && myself::Skill_GetConsumeHP(DeBuff) < myself.sm.hp && myself::Skill_InReuseDelay(DeBuff) == 0 ) {
						myself::AddUseSkillDesire(attacker,DeBuff,0,1,1000000);
					}
				}
			}
		}
		super;
	}

	EventHandler CLAN_ATTACKED(attacker,damage) {
		if( myself::GetLifeTime() > 7 && ( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) ) {
			if( gg::Rand(100) < 33 && gg::GetAbnormalLevel(attacker,myself::Skill_GetAbnormalType(DeBuff)) <= 0 ) {
				if( myself::Skill_GetConsumeMP(DeBuff) < myself.sm.mp && myself::Skill_GetConsumeHP(DeBuff) < myself.sm.hp && myself::Skill_InReuseDelay(DeBuff) == 0 ) {
					myself::AddUseSkillDesire(attacker,DeBuff,0,1,1000000);
				}
			}
		}
		super;
	}

}
