<?xml version="1.0" standalone="no" ?>
<unit>
	<parameters>
		<size value="2" />
		<height value="5" />
		<ai-build-size value="3"/>
		<max-hp value="5000" regeneration="0"/>
		<max-ep value="0" />
		<armor value="0" />
		<armor-type value="wood"/>
		<sight value="19" />
		<time value="50" />
		<multi-selection value="true"/>
		<uniform-selection value="true"/>
		<cellmap value="false" />
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false" />
		<unit-requirements>
			<unit name="blacksmith" />
			<unit name="mead_bar" />
		</unit-requirements>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="150" />
			<resource name="wood" amount="200" />
		</resource-requirements>
		<resources-stored>
			<resource name="wood" amount="2000" />
		</resources-stored>
		<image path="images/mistletree.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="true" image-path="../mead_bar/images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav" />
		</command-sounds>
	</parameters>
	<skills>
		<skill>
			<name value="be_built_skill"/>
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="300"/>
			<animation path="models/mistletree_construction.g3d"/>
			<sound enabled="false"/>
			<type value="be_built"/>
		</skill>
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="20"/>
			<animation path="models/mistletree.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="produce"/>
			<name value="produce_skill"/>
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="30"/>
			<animation path="models/mistletree.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="attack"/>
			<name value="attack_air_skill"/>
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="80"/>
			<animation path="models/mistletree_attacking.g3d"/>
			<sound enabled="false" start-time="0">
				<sound-file path="/sounds/tower_attack1.wav"/>
				<sound-file path="/sounds/tower_attack2.wav"/>
				<sound-file path="/sounds/tower_attack3.wav"/>
				<sound-file path="/sounds/tower_attack4.wav"/>
				<sound-file path="/sounds/tower_attack5.wav"/>
				<sound-file path="/sounds/tower_attack6.wav"/>
			</sound>
			<attack-strenght value="150"/>
			<attack-var value="50"/>
			<attack-range value="15"/>
			<attack-type value="magic"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="false" start-time="0">
					<sound-file path="/sounds/tower_hit1.wav"/>
					<sound-file path="/sounds/tower_hit2.wav"/>
					<sound-file path="/sounds/tower_hit3.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="3"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
		<skill>
			<type value="upgrade"/>
			<name value="upgrade_skill"/>
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="30"/>
			<animation path="models/mistletree.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="die"/>
			<name value="die_skill"/>
			<ep-cost value="0" />
			<speed value="300"/>
			<anim-speed value="100" />
			<animation path="models/mistletree_destroyed.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tech_building_fall5.wav"/>
			</sound>
			<fade value="false"/>
		</skill>
	</skills>
	<commands>
		<command>
			<type value="attack_stopped"/>
			<name value="air_on"/>
			<image path="images/mistletree_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>
		<command>
			<type value= "stop"/>
			<name value="attack_off"/>
			<name value="hold_position"/>
			<image path="../archer/images/tech_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>
		<command>
			<type value="upgrade"/>
			<name value="research_root"/>
			<image path="../../upgrades/root/images/root.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="root"/>
		</command>
		<command>
			<type value="produce"/>
			<name value="resurrect_wild_sow" />
			<image path="../wild_sow/images/wild_sow.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<produce-skill value="produce_skill"/>
			<produced-unit name="wild_sow"/>
		</command>
	</commands>
</unit>
