@LabelIndex 56904
@StringIndex 0
class 0 party_leader_physicalspecial_summon : party_leader {
parameter:
	int	Buff = 458752001;
	int	PhysicalSpecial = 458752001;
	int	silhouette = 1020130;
	string	ai_type = "warrior";

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

	EventHandler ATTACKED(attacker,damage,i1,i2) {
		if( myself.sm.hp < ( myself.sm.max_hp * 0.500000 ) && myself.i_ai0 < 2 && 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);
			myself.i_ai0 = ( myself.i_ai0 + 1 );
			myself.i_ai1 = 1;
			myself::AddTimerEx(6006,( 5 * 1000 ));
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 6006 ) {
			myself.i_ai1 = 0;
		}
		super;
	}

}
