<?xml version="1.0" encoding="utf-8"?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude">
	<Tags></Tags>
	<Includes>
		<Include
			type="all"
			source="DATA:GlobalData/GlobalDefines.xml" />
		<Include
			type="all"
			source="ART:SquadMarkNURoc.w3x" />
		<Include
			type="all"
			source="ART:NU_BlkHnd_SKN.w3x" />
		<Include
			type="all"
			source="ART:FXConfessor_FP.w3x" />
		<Include
			type="all"
			source="ART:Decal_LeadershipBuff.xml" />
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseSquad.xml" />
	</Includes>
	<GameObject
		id="BlackHandConfessorSquad"
		inheritFrom="BaseSquad"
		SelectPortrait="Portrait_NODConfessor"
		ButtonImage="Portrait_NODConfessor"
		Side="BlackHand"
		EditorSorting="UNIT"
		TransportSlotCount="1"
		BuildCost="400"
		BuildTime="4"
		CommandSet="BlackHandConfessorCabalSquadCommandSet"
		CommandPoints="100" 
		KindOf="SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT INFANTRY HORDE ARMY_SUMMARY LARGE_RECTANGLE_PATHFIND PATH_THROUGH_INFANTRY SKIRMISH_AI_DONT_GARRISON ANTI_GARRISON CAN_CAPTURE CAN_BE_FAVORITE_UNIT SCORE"
		FormationWidth="2"
		FormationDepth="1"
		ProductionQueueType="INFANTRY"
		UnitCategory="INFANTRY"
		WeaponCategory="BLAST"
		EditorName="BlackHandConfessorSquad"
		Description="Desc:BlackHandConfessorSquad"
		TypeDescription="Type:BlackHandConfessorSquad"
		WorldMapArmoryUpgradesAllowed="Upgrade_NodTechCenterChargedParticleBeam"
		UnitTypeIcon="ConfessorHordePip">
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:BlackHandConfessorSquad</DisplayName>
		<DisplayUpgrade>Upgrade_NodTechCenterChargedParticleBeam</DisplayUpgrade>
		<DisplayUpgrade
			id="Tag_DisplayUpgrade2">Upgrade_BlackHandBlackDisciplesUpgrade</DisplayUpgrade>		
		<!-- <GameDependency>
			<RequiredObject>BlackHandSecretShrine</RequiredObject>
		</GameDependency> -->
		<ArmorSet
			Armor="NoArmor" />
		<LocomotorSet
			Locomotor="NormalRangedSquadLocomotor"
			Condition="NORMAL"
			Speed="40" />
		<SkirmishAIInformation
			UnitBuilderStandardCombatUnit="true" />
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_01"
				OkToChangeModelColor="true">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="FORMATION_PREVIEW">
					<Model
						Name="FXConfessor_FP" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="WORLD_BUILDER">
					<Model
						Name="SquadMarkNURoc" />
				</ModelConditionState>
			</ScriptedModelDraw>
			
			<ScriptedModelDraw
							id="ModuleTag_Draw_Selected_Repair_Decal"
							OkToChangeModelColor="true">
							<ModelConditionState
								ParseCondStateType="PARSE_DEFAULT">
								<Model Name="" />
							</ModelConditionState>
							<ModelConditionState
								ParseCondStateType="PARSE_NORMAL"
								ConditionsYes="SELECTED">
								<Model Name="FXInvisBone" />
								<ShadowInfo
									Type="ADDITIVE_DECAL"
									SizeX="300"
									SizeY="300"
									OverrideLODVisibility="true"
									MaxHeight="200"
									UseHouseColor="true"
									Texture="Decal_LeadershipBuff" 
									LocalPlayerOnly="true"
								/>
							</ModelConditionState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
		<WeaponSetUpdate>
			<WeaponSlotHardpoint
				ID="1"
				AllowInterleavedFiring="false"
				InterleavedStyle="INTERLEAVE_FIRST_AVAILABLE"
				WeaponChoiceCriteria="PREFER_MOST_DAMAGE">
				<Weapon
					Ordering="PRIMARY_WEAPON"
					Template="NODMilitantSquadRangeFinder" />
			</WeaponSlotHardpoint>
      		</WeaponSetUpdate>
			<Physics
				id="ModuleTag_PhysicsBehavior" />
			<ProductionUpdate
				id="ProductionUpdateModuleTag"
				GiveNoXP="true" />
			<BannerCarrierUpgrade
				id="ModuleTag_BlackHandBannerCarrierUpgrade"
				Permanent="true">
				<TriggeredBy>Upgrade_BlackHandBlackDisciplesUpgrade</TriggeredBy>
			</BannerCarrierUpgrade>
			<HordeContain
				id="ModuleTag_HordeContain"
				FrontAngle="4.7123"
				FlankedDelaySeconds="2.0"
				ShowPips="false"
				Formation="MAIN"
				MeleeAttackLeashDistance="1"
				Slots="6"
				ObjectStatusOfContained=""
				ConditionForEntry="INVALID"
				BannerCarrierByUpgradeOnly="true">
				<PassengerFilter
					Rule="NONE"
					Include="INFANTRY" />
				<DieMuxData />
				<InitialPayload
					Name="BlackHandConfessor"
					Count="6" />
				<MeleeBehavior
					Type="AMOEBA" />
				<RandomOffset
					x="4"
					y="4" />
				<RankInfo
					RankID="1"
					UnitType="BlackHandConfessor">
					<Position
						X="10"
						Y="-20" />
					<Position
						X="20"
						Y="0" />
					<Position
						X="10"
						Y="20" />
				</RankInfo>
				<RankInfo
					RankID="2"
					UnitType="BlackHandConfessor">
					<Position
						X="-10"
						Y="-20" />
					<Position
						X="0"
						Y="0" />
					<Position
						X="-10"
						Y="20" />
				</RankInfo>
				<RankToReleaseWhenAttacking>1</RankToReleaseWhenAttacking>
				<RankToReleaseWhenAttacking>2</RankToReleaseWhenAttacking>
				<BannerCarrierPosition>
					<UnitType>BlackHandBlackDisciple</UnitType>
					<Pos
						x="35"
						y="0" />
				</BannerCarrierPosition>
				<BannerCarriersAllowed>BlackHandBlackDisciple</BannerCarriersAllowed>
			</HordeContain>
			<xi:include
				href="../../Includes/NodCallForTransportInfantry.xml" />
			<xi:include
				href="DATA:Includes/CaptureBehavior.xml"
				xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:Behaviors/child::*)" />
			<!--
			<AttributeModifierAuraUpdate
				id="ModuleTag_AttributeModifierAuraUpdate"
				AttributeModifierName="AttributeModifier_Leadership"
				RefreshDelay="5.0s"
				Range="150"
				InitiallyActive="true">
        		<ObjectFilter
					Rule="NONE"
					Relationship="ALLIES"
					Include="INFANTRY"></ObjectFilter>
      			</AttributeModifierAuraUpdate> 
      			-->		
      		
      		<!-- <FireWeaponUpdate
				id="ModuleTag_FireWeaponUpdate">
				<FireWeaponNugget
					WeaponName="ConfessorSquadLeadershipBuff"
					FireDelay="0s"
					FireInterval="1s"
				/>
			</FireWeaponUpdate> -->
      		
			<AttributeModifierAuraUpdate
					id="ModuleTag_AttributeModifierAuraUpdate"
					AttributeModifierName="Confessor_Militant_AttributeModifier"
			   		RefreshDelay="1.0s"
			 		Range="150"
					InitiallyActive="true">
					<ObjectFilter
       					Rule="ANY"
       					Relationship="ALLIES"
						Include="INFANTRY">                                     
					</ObjectFilter>
			</AttributeModifierAuraUpdate>

			<SpecialPower
				id="ModuleTag_ConfessorCabalFireGrenade"
				SpecialPowerTemplate="SpecialPower_BlackHandConfessorCabalGetToGrenadeRange"
				UpdateModuleStartsAttack="true" />
			<SpecialAbilityUpdate
				id="ModuleTag_ConfessorCabalFireGrenadeUpdate"
				SpecialPowerTemplate="SpecialPower_BlackHandConfessorCabalGetToGrenadeRange"
				UnpackTime="0s"
				PackTime="0s"
				StartAbilityRange="200"
				ChainedButton="Command_BlackHandConfessorCabalFireGrenade" />
			<HordeDispatchSpecialPower
				id="ModuleTag_ConfessorCabalDispatchFireGrenade"
				SpecialPowerTemplate="SpecialPower_BlackHandConfessorCabalFireGrenade" >
			</HordeDispatchSpecialPower>
<!--			
			<LevelUpUpgrade
				id="ModuleTag_LevelUpUpgrade"
				LevelCap="4"
				DoFlash="false"
				LevelsToGain="1">
				<TriggeredBy>Upgrade_BlackHandFaction</TriggeredBy>
			</LevelUpUpgrade>  
-->			
      	</Behaviors>
      	
      	
		<AI>
			<HordeAIUpdate
				id="ModuleTag_HordeAIUpdate"
				AutoAcquireEnemiesWhenIdle="YES"
				MaxCowerTime="5.0s"
				MinCowerTime="3.0s"
				CanAttackWhileContained="true">
				<UnitAITargetChooserData
					SympathyRange="100.0" />
			</HordeAIUpdate>
		</AI>
		<Body>
			<ImmortalBody
				id="ModuleTag_ImmortalBody"
				MaxHealth="1.0" />
		</Body>
		<Geometry
			IsSmall="false">
			<Shape
				Type="BOX"
				MajorRadius="20.0"
				MinorRadius="25.0"
				Height="13.0"></Shape>
		</Geometry>
		<VisionInfo
			VisionRange="350"
			ShroudClearingRange="400"
			MaxVisionBonusPercent="300"
			VisionBonusTestRadius="200"
			VisionBonusPercentPerFoot="1" />
		<CrusherInfo
			UseCrushAttack="false"
			CrushableLevel="0"
			CrusherLevel="0" />
	</GameObject>
</AssetDeclaration>
<!-- 

Object BlackHandConfessorSquad

	ThreatBreakdown NODBlackHandHorde_DetailedThreat
		AIKindOf = ARCHER
	End

	Behavior = AISpecialPowerUpdate NODBlackHandHordeCaptureBuildingAI
		CommandButtonName = Command_CaptureBuilding
		SpecialPowerAIType = AI_SPECIAL_POWER_CAPTURE_BUILDING
	End
	
End


-->
