<?xml version="1.0" standalone="no" ?>
<unit>

	<parameters>
		<size value="2" />
		<height value="3" />
		<max-hp value="6000" regeneration="0"/>
		<max-ep value="0" />
		<armor value="0" />
		<armor-type value="stone"/>				
		<sight value="16" />
		<time value="150" />
		<multi-selection value="false" />
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false" />
		<rotationAllowed value="false" />
		<unit-requirements>
			<unit name="mage_tower"/>
                        <unit name="summoner"/>
                        <unit name="library"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="200"/>
			<resource name="stone" amount="250"/>
                        <resource name="energy" amount="3"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/tower_of_souls.bmp"/>
		<image-cancel path="../archmage/images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="../archmage_tower/sounds/magic_click.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="../archmage_tower/sounds/magic_click.wav"/>
		</command-sounds>
	</parameters>
	
	<skills>

		<skill>
			<type value="stop" />
			<name value="stop_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="100" />
			<animation path="models/tower_of_souls.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="120"/>
			<speed value="120"/>
			<anim-speed value="300" />
			<animation path="../mage_tower/construction_models/tower_of_souls_construction.g3d" />
			<sound enabled="false" />
		</skill>
		
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="80"/>
			<animation path="models/tower_of_souls.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack6.wav"/>
			</sound>
			<attack-strenght value="200"/>
			<attack-var value="50"/>
			<attack-range value="15"/>
			<attack-type value="energy"/>
			<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="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit2.wav"/>
				<sound-file path="$COMMONDATAPATH/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="die" />
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="../mage_tower/destruction_models/energy_source_destruction.g3d" />
			<sound enabled="true" start-time="0">
				<sound-file path="../archmage_tower/sounds/magic_building_fall7.wav"/>
			</sound>
			<fade value="false"/>
		</skill>

	</skills>
	
	
	<commands>
		<command>
			<type value= "stop"/>
			<name value="attack_off"/>
			<image path="images/tower_of_souls_attack_off.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value= "attack_stopped"/>
			<name value="attack_on"/>
			<image path="images/tower_of_souls_attack_on.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
	</commands>
</unit>
