@LabelIndex 57046
@StringIndex 0
class 0 party_leader_wizard_dd2_summon : party_leader_wizard_dd2 {
parameter:
	int	silhouette = 1020130;
	string	ai_type = "warrior";
	int	silhouette2 = 1020130;
	string	ai_type2 = "warrior";
	int	silhouette3 = 1020130;
	string	ai_type3 = "warrior";

handler:
	EventHandler CREATED() {
		myself.i_ai1 = 0;
		super;
	}

	EventHandler ATTACKED(attacker,damage,i1,i2) {
		super;
		if( myself.i_ai1 == 0 ) {
			i1 = ( gg::Rand(50) - 25 );
			i2 = ( gg::Rand(50) - 25 );
			myself::CreateOnePrivateEx(silhouette,ai_type,0,0,gg::FloatToInt(( myself.sm.x + i1 )),gg::FloatToInt(( myself.sm.y + i2 )),gg::FloatToInt(myself.sm.z),0,1000,gg::GetIndexFromCreature(attacker),0);
			i1 = ( gg::Rand(100) - 50 );
			i2 = ( gg::Rand(100) - 50 );
			myself::CreateOnePrivateEx(silhouette2,ai_type2,0,0,gg::FloatToInt(( myself.sm.x + i1 )),gg::FloatToInt(( myself.sm.y + i2 )),gg::FloatToInt(myself.sm.z),0,1000,gg::GetIndexFromCreature(attacker),0);
			i1 = ( gg::Rand(100) - 50 );
			i2 = ( gg::Rand(100) - 50 );
			myself::CreateOnePrivateEx(silhouette3,ai_type3,0,0,gg::FloatToInt(( myself.sm.x + i1 )),gg::FloatToInt(( myself.sm.y + i2 )),gg::FloatToInt(myself.sm.z),0,1000,gg::GetIndexFromCreature(attacker),0);
			myself.i_ai1 = 1;
		}
	}

}
