@LabelIndex 39587
@StringIndex 0
class 0 raid_boss_alone_summon_private : raid_boss_type1 {
parameter:
	string	Privates = "orc:party_private:1:20sec";
	int	MaxPrivateNumber = 10;

handler:
	EventHandler CREATED() {
		myself.sm.weight_point = 10;
		myself::CreatePrivates(Privates);
		myself.i_ai0 = 0;
		super;
	}

	EventHandler PARTY_ATTACKED(attacker,private,damage,f0) {
		if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
			if( damage == 0 ) {
				damage = 1;
			}
			myself::AddAttackDesire(attacker,1,( ( ( 1.000000 * damage ) / ( myself.sm.level + 7 ) ) * 100 ));
		}
		super;
	}

	EventHandler PARTY_DIED(private) {
		if( myself.i_ai0 < MaxPrivateNumber && private != myself.sm ) {
			myself::CreateOnePrivate(private.class_id,private.ai,private.weight_point,private.respawn_time);
			myself.i_ai0 = ( myself.i_ai0 + 1 );
		}
	}

}
