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

<unit>

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="500" regeneration="4"/>
		<max-ep value="500" regeneration="5"/>
		<armor value="0"/>
		<armor-type value="leather"/>
		<sight value="10"/>
		<time value="80"/>
		<multi-selection value="true"/>
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land"/>
		</fields>
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="summoner_guild"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="150"/>
			<resource name="energy" amount="1"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/summoner.bmp"/>
		<image-cancel path="../archmage/images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/summoner_select2.wav"/>
			<sound path="sounds/summoner_select3.wav"/>
			<sound path="sounds/summoner_select5.wav"/>
			<sound path="sounds/summoner_select6.wav"/>
			<sound path="sounds/summoner_select7.wav"/>
			<sound path="sounds/summoner_select10.wav"/>
			<sound path="sounds/summoner_select11.wav"/>
			<sound path="sounds/summoner_select14.wav"/>
			<sound path="sounds/summoner_select15.wav"/>
			<sound path="sounds/summoner_select16.wav"/>
			<sound path="sounds/summoner_select17.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/summoner_ack1.wav"/>
			<sound path="sounds/summoner_ack2.wav"/>
			<sound path="sounds/summoner_ack3.wav"/>
			<sound path="sounds/summoner_ack4.wav"/>
			<sound path="sounds/summoner_ack5.wav"/>
			<sound path="sounds/summoner_ack6.wav"/>
			<sound path="sounds/summoner_ack7.wav"/>
			<sound path="sounds/summoner_ack8.wav"/>
			<sound path="sounds/summoner_ack9.wav"/>
			<sound path="sounds/summoner_ack10.wav"/>
			<sound path="sounds/summoner_ack11.wav"/>
			<sound path="sounds/summoner_ack12.wav"/>
		</command-sounds>
	</parameters>

	<skills>

		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="40"/>
			<animation path="models/summoner_standing.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>
			<ep-cost value="0"/>
			<speed value="180"/>
			<anim-speed value="144"/>
			<animation path="models/summoner_walking.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="produce"/>
			<name value="summon_skill"/>
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="80"/>
			<animation path="models/summoner_producing.g3d"/>
			<sound enabled="true" start-time="0.3">
				<sound-file path="$COMMONDATAPATH/sounds/summoner_summon1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_summon2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_summon3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_summon4.wav"/>
			</sound>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>
			<ep-cost value="80"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/summoner_attacking.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack6.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack7.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/summoner_attack8.wav"/>
			</sound>
			<attack-strenght value="170"/>
			<attack-var value="50"/>
			<attack-range value="8"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="$COMMONDATAPATH/sounds/summoner_hit1.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/summoner_hit2.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/summoner_hit3.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/summoner_hit4.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="1"/>
				<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="80"/>
			<anim-speed value="80"/>
			<animation path="models/summoner_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/summoner_die1.wav"/>
				<sound-file path="sounds/summoner_die2.wav"/>
				<sound-file path="sounds/summoner_die3.wav"/>
				<sound-file path="sounds/summoner_die4.wav"/>
			</sound>
			<fade value="false"/>
		</skill>

		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="40"/>
			<animation path="models/summoner_standing.g3d"/>
			<sound enabled="false"/>
		</skill>

                <skill>
			<type value="morph"/>
			<name value="morph_skill"/>
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="80"/>
			<animation path="models/summoner_producing.g3d"/>
			<sound enabled="false"/>
		</skill>

	</skills>

	<commands>

		<command>
			<type value= "stop"/>
			<name value="stop"/>
			<image path="../archmage/images/magic_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value= "move"/>
			<name value="move"/>
			<image path="../archmage/images/magic_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value= "attack"/>
			<name value="flare"/>
			<image path="images/summoner_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

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

		<command>
			<type value="produce"/>
			<name value="summon_daemon" />
			<image path="images/summoner_daemon.bmp"/>
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="summon_skill"/>
			<produced-unit name="daemon"/>
		</command>

		<command>
			<type value="produce"/>
			<name value="summon_ghost_armor" />
			<image path="images/summoner_armor.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<produce-skill value="summon_skill"/>
			<produced-unit name="ghost_armor"/>
		</command>

		<command>
			<type value="produce"/>
			<name value="summon_dragon" />
			<image path="images/summoner_dragon.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<produce-skill value="summon_skill"/>
			<produced-unit name="dragon"/>
		</command>

                <command>
			<type value="morph"/>
			<name value="summon_wingless_dragon"/>
			<image path="../dragon_rider/images/drake_rider.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "dragon_rider"/>
			<discount value="0"/>
		</command>

	</commands>
</unit>
