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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="500" regeneration="0"/>
		<max-ep value="20" regeneration="2" start-value="20"/>
		<armor value="10"/>	
		<armor-type value="leather"/>				
		<sight value="10"/>
		<time value="30"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="enflamed" kills="6"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="war_totem"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="150"/>
			<resource name="food" amount="10"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="images/pyromancer.png"/>
		<image-cancel path="../fungus_farm/images/cancel.png"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="false"/>
		<command-sounds enabled="false"/>
	</parameters>

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

		<skill>
			<type value="stop"/>
			<name value="flameshield_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/pyro_idle.g3d"/>
			<sound enabled="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false"/>
				<radius value="6" />
				<target value="faction" include-self="true">
					<unit-type name="goblin_warrior" />
					<unit-type name="crusher" />	
					<unit-type name="archer" />
					<unit-type name="firebelly" />
				</target>
				<move-speed value="125" value-percent-multipler="true" />
				<attack value="20" value-percent-multipler="false" />
				<particles value="true">
					<originator-particle-file path="fire_particles.xml" />
					<affected-particle-file path="fire_particles.xml" />
				</particles>
			</attack-boost>
		</skill>

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


		<skill>
			<type value="attack"/>
			<name value="flamebolt_skill"/>		
			<ep-cost value="20"/>
			<speed value="100"/>
			<anim-speed value="80"/>
			<animation path="models/pyro_attack.g3d"/>
			<sound enabled="false" start-time="0.1"/>
			<attack-strenght value="300"/>
			<attack-var value="50"/>
			<attack-range value="8"/>
			<attack-type value="magic"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="true">
				<particle value="true" path="flamebolt_projectile.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="true">
				<radius value="4"/>
				<damage-all value="true"/>
				<particle value="true" path="earthquake_splash.xml"/>
			</splash>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="blast_skill"/>		
			<ep-cost value="0"/>
			<speed value="600"/>
			<anim-speed value="200"/>
			<animation path="models/pyro_attack.g3d"/>
			<sound enabled="false" start-time="0.1"/>
			<attack-strenght value="50"/>
			<attack-var value="0"/>
			<attack-range value="2"/>
			<attack-type value="magic"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="true">
				<particle value="true" path="flamebolt_projectile.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="false"/>
		</skill>


		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="60"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/pyro_die.g3d"/>
			<animation path="models/pyro_die2.g3d"/>
			<animation path="models/pyro_die3.g3d"/>
			<animation path="models/pyro_die4.g3d"/>
			<animation-random-cycle-maxcount value="1" />
			<sound enabled="false" start-time="0"/>			
			<fade value="false"/>
		</skill>


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

		<command>
			<type value="attack_stopped"/>
			<name value="flameshield"/>
			<image path="images/blast.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="flameshield_skill"/>
			<attack-skill value="blast_skill"/>
		</command>

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

		<command>
			<type value="attack"/>
			<name value="flamebolt"/>
			<image path="images/firey.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="flamebolt_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="blast"/>
			<image path="images/firey2.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="blast_skill"/>
		</command>

		
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../slave/images/hold.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="flamebolt_skill"/>
		</command>


	</commands>
</unit>
