label="2p - Silverhead Crossing Turn 12_WackererWichtel"
version="1.6"
completion="victory"
campaign_type="multiplayer"
difficulty="NORMAL"
random_seed="2040054078"
random_calls="0"
next_underlying_unit_id="36"
end_text_duration="0"
[variables]
[/variables]
[replay]
	[command]
		[start]
		[/start]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="hf :-)"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="WackererWichtel"
			message="thx u2 :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="0"
			x="5"
			y="12"
		[/recruit]
		[random]
			value="1553587956"
		[/random]
		[random]
			value="374923692"
		[/random]
		[random]
			value="68139135"
		[/random]
		[random]
			value="1475462187"
		[/random]
		[random]
			value="676937664"
		[/random]
		[random]
			value="1035232535"
		[/random]
		[random]
			value="1268012556"
		[/random]
		[random]
			value="1372434071"
		[/random]
		[random]
			value="1815742436"
		[/random]
		[random]
			value="1525798732"
		[/random]
		[random]
			value="901440842"
		[/random]
		[random]
			value="1305061299"
		[/random]
		[random]
			value="1244574519"
		[/random]
		[random]
			value="1977080211"
		[/random]
		[random]
			value="408420921"
			[results]
				checksum="oxj+sAh20PB1VmsQ56tLoxMPdOFGJz.MMAvVvoQO,ECJMwDzBrzrTwAoECqSJHEvSS3IzTALqvFArEKTmSKvvPnFtw-InBRSqBwbD3xFMMEJCCHO+YDPPnPywBn8EE25"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="4"
			y="12"
		[/recruit]
		[random]
			value="594080077"
		[/random]
		[random]
			value="1271064731"
		[/random]
		[random]
			value="1963161409"
		[/random]
		[random]
			value="1246303074"
		[/random]
		[random]
			value="450791116"
		[/random]
		[random]
			value="1334804910"
		[/random]
		[random]
			value="600352796"
		[/random]
		[random]
			value="2004379072"
		[/random]
		[random]
			value="1709728602"
		[/random]
		[random]
			value="668491931"
		[/random]
		[random]
			value="1332357612"
		[/random]
		[random]
			value="239182619"
		[/random]
		[random]
			value="1703724466"
		[/random]
		[random]
			value="452886520"
		[/random]
		[random]
			value="1611616690"
			[results]
				checksum="ACIByNSVYzLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9uumVnpCouMKPBb5OJGPbmz3o>.fjcflW4pf7m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="2"
			x="6"
			y="14"
		[/recruit]
		[random]
			value="1470930477"
		[/random]
		[random]
			value="1112382001"
		[/random]
		[random]
			value="1659191015"
		[/random]
		[random]
			value="1107215138"
		[/random]
		[random]
			value="1660818813"
		[/random]
		[random]
			value="105787445"
		[/random]
		[random]
			value="230796221"
		[/random]
		[random]
			value="1476496575"
		[/random]
		[random]
			value="1352090519"
		[/random]
		[random]
			value="681587337"
		[/random]
		[random]
			value="663817837"
		[/random]
		[random]
			value="1952443315"
		[/random]
		[random]
			value="538482762"
		[/random]
		[random]
			value="226062791"
		[/random]
		[random]
			value="473451599"
			[results]
				checksum="5OmKwDKUXxq,TxsyxcPSqynxyiENEnLUmPIBJLzMORyvQtLtMsz3uNvNwJSpuLuGnUrzCuxIPMnkISuGzPSPQusvFwzsUDAquYfrOmRzwFyqGfDMfDAHFKdeVs241d4."
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="2"
			x="5"
			y="13"
		[/recruit]
		[random]
			value="692634757"
		[/random]
		[random]
			value="1420669146"
		[/random]
		[random]
			value="982645934"
		[/random]
		[random]
			value="1157880167"
		[/random]
		[random]
			value="1450361564"
		[/random]
		[random]
			value="1158889181"
		[/random]
		[random]
			value="1087258620"
		[/random]
		[random]
			value="704553588"
		[/random]
		[random]
			value="1166334032"
		[/random]
		[random]
			value="1382210958"
		[/random]
		[random]
			value="488306519"
		[/random]
		[random]
			value="102071359"
		[/random]
		[random]
			value="1872333743"
		[/random]
		[random]
			value="1210041276"
		[/random]
		[random]
			value="1713115339"
			[results]
				checksum="5OmKwDKUXxq,TxsyxcPSqynxyiENEnLUmPIBJLzMORyvQtLtMsz3uNvNwJSpuLuGnUrzCuxIPMnkISuGzPSPQusvFwzsUDAquYfrOmRzwFyqGfDMfDAHFKdeVs241d4."
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="4,5,6,7,8,9"
			y="11,12,12,13,13,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[recruit]
			value="4"
			x="22"
			y="17"
		[/recruit]
		[random]
			value="1368057969"
		[/random]
		[random]
			value="206805886"
		[/random]
		[random]
			value="705431303"
		[/random]
		[random]
			value="909600361"
		[/random]
		[random]
			value="1179992484"
		[/random]
		[random]
			value="1924244519"
		[/random]
		[random]
			value="760605689"
		[/random]
		[random]
			value="1727286890"
		[/random]
		[random]
			value="1978442792"
		[/random]
		[random]
			value="1756691519"
		[/random]
		[random]
			value="878197029"
		[/random]
		[random]
			value="886864492"
		[/random]
		[random]
			value="472595302"
		[/random]
		[random]
			value="174377595"
		[/random]
		[random]
			value="1820312226"
			[results]
				checksum="jfC5opl9pneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0.Ug681h64jGjKk7ELYl9YI95gAxGxnvPuSIVEH>yBMtLAwyHPDR"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="3"
			x="23"
			y="17"
		[/recruit]
		[random]
			value="1695360300"
		[/random]
		[random]
			value="1877262486"
		[/random]
		[random]
			value="1334523565"
		[/random]
		[random]
			value="727869137"
		[/random]
		[random]
			value="1654023357"
		[/random]
		[random]
			value="2095129254"
		[/random]
		[random]
			value="307672379"
		[/random]
		[random]
			value="1484982501"
		[/random]
		[random]
			value="1704337125"
		[/random]
		[random]
			value="1185869408"
		[/random]
		[random]
			value="224363346"
		[/random]
		[random]
			value="29448779"
		[/random]
		[random]
			value="1360247004"
		[/random]
		[random]
			value="2044675572"
		[/random]
		[random]
			value="1762100199"
			[results]
				checksum="H-Q.4kSV1kP6gOQR,wHJxusL-.Ekr06z8QM,E>N>OoNiAM-x,w+es6q9HO5BeFhCwtP2J9TQGVxuTw8SMUFUUA1FGHuc9g0x6zCvNjoC,6pf72FoLfpj9>yBpy8oZxof"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ragnara has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="23"
			y="16"
		[/recruit]
		[random]
			value="894915000"
		[/random]
		[random]
			value="1582764981"
		[/random]
		[random]
			value="2003155866"
		[/random]
		[random]
			value="1622784137"
		[/random]
		[random]
			value="1089304690"
		[/random]
		[random]
			value="1950801472"
		[/random]
		[random]
			value="1930456516"
		[/random]
		[random]
			value="426803543"
		[/random]
		[random]
			value="1507654949"
		[/random]
		[random]
			value="968842277"
		[/random]
		[random]
			value="651166889"
		[/random]
		[random]
			value="1537103728"
		[/random]
		[random]
			value="181605633"
		[/random]
		[random]
			value="548358814"
		[/random]
		[random]
			value="1151720280"
			[results]
				checksum="jfC5opl9pneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji-0Ug681h64jGjKk7ELYl9YI95gAxGxnvPuSVVEH>yBMtLAwyHUqR"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="sx_Lenny_Deadly has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="22,21,20,19,18"
			y="14,14,13,13,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="3"
			x="18"
			y="11"
		[/recruit]
		[random]
			value="1104103444"
		[/random]
		[random]
			value="1746254343"
		[/random]
		[random]
			value="125954041"
		[/random]
		[random]
			value="2072945721"
		[/random]
		[random]
			value="249937584"
		[/random]
		[random]
			value="1663057770"
		[/random]
		[random]
			value="107067706"
		[/random]
		[random]
			value="798296398"
		[/random]
		[random]
			value="667294402"
		[/random]
		[random]
			value="739354685"
		[/random]
		[random]
			value="959806417"
		[/random]
		[random]
			value="1963569473"
		[/random]
		[random]
			value="2064020253"
		[/random]
		[random]
			value="737857081"
		[/random]
		[random]
			value="2081877396"
			[results]
				checksum="H-Q.4kSV1kP6gOQR,wHJxusL-.Ekr06z8QM,E>N>OoNiAM-x,w+es6q9HO5BeFhCwtP2J9TQGVxuTw8SMUFUUA1FGHuc9g0x6zCvNjoC,6pf72FoLfpj9>yBpy8oZxof"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="1"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="646215644"
		[/random]
		[random]
			value="1892782618"
		[/random]
		[random]
			value="249018782"
		[/random]
		[random]
			value="2078178994"
		[/random]
		[random]
			value="1449538349"
		[/random]
		[random]
			value="1287060495"
		[/random]
		[random]
			value="10039825"
		[/random]
		[random]
			value="2113086778"
		[/random]
		[random]
			value="2023448648"
		[/random]
		[random]
			value="319530414"
		[/random]
		[random]
			value="1591616474"
		[/random]
		[random]
			value="1933483728"
		[/random]
		[random]
			value="1948471802"
		[/random]
		[random]
			value="1835928910"
		[/random]
		[random]
			value="800138605"
			[results]
				checksum="uanXXml,wl3GigaA+g95nn6hVh52<,alcaZ.01ah->ke.j8yho864c09je5dob.ld3k,h+bA1+Z4..>9<ImYcB->dd8+XYVckKYca0dYfE>bqAh-anyQoXDDBuuCLOtE"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="17"
			y="13"
		[/recruit]
		[random]
			value="1575597510"
		[/random]
		[random]
			value="866908167"
		[/random]
		[random]
			value="1980022799"
		[/random]
		[random]
			value="1254239778"
		[/random]
		[random]
			value="1170522742"
		[/random]
		[random]
			value="459242785"
		[/random]
		[random]
			value="1416131934"
		[/random]
		[random]
			value="1816738386"
		[/random]
		[random]
			value="204541755"
		[/random]
		[random]
			value="1665150716"
		[/random]
		[random]
			value="1747433733"
		[/random]
		[random]
			value="1654080104"
		[/random]
		[random]
			value="804727563"
		[/random]
		[random]
			value="1757473558"
		[/random]
		[random]
			value="1619683234"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji--Ug681h64jGjKk7ELbfXlO69>IPFNIDBGnoCSO3srDyLKztBCMx"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Frankenshtein has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,17"
			y="12,12"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Gwood has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="4,4,4,5,5,5"
			y="12,11,10,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,6,7,8,9,10"
			y="12,11,11,10,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,5,5,5,6,7,8,9,10"
			y="13,12,11,10,9,9,8,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="CVA has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="riel has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mimilf has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="6,6,6,6,6,6,6,5"
			y="14,15,16,17,18,19,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,9,10"
			y="14,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="zy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="10"
			y="16"
		[/recruit]
		[random]
			value="633202487"
		[/random]
		[random]
			value="959403364"
		[/random]
		[random]
			value="2055333459"
		[/random]
		[random]
			value="1805338562"
		[/random]
		[random]
			value="1652560481"
		[/random]
		[random]
			value="1926129697"
		[/random]
		[random]
			value="727884334"
		[/random]
		[random]
			value="1543712401"
		[/random]
		[random]
			value="1460415123"
		[/random]
		[random]
			value="558388662"
		[/random]
		[random]
			value="2018872420"
		[/random]
		[random]
			value="374568665"
		[/random]
		[random]
			value="1599814699"
		[/random]
		[random]
			value="1485821994"
		[/random]
		[random]
			value="328605406"
			[results]
				checksum="ACIByNSVYtLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9EumVnpCouMKPBb5tJGPbmz3o>.fjcflW4p97m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bruce has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="3"
			x="11"
			y="15"
		[/recruit]
		[random]
			value="1339486569"
		[/random]
		[random]
			value="1289515155"
		[/random]
		[random]
			value="1018711287"
		[/random]
		[random]
			value="903451995"
		[/random]
		[random]
			value="1922717643"
		[/random]
		[random]
			value="1978114651"
		[/random]
		[random]
			value="811301806"
		[/random]
		[random]
			value="1580572557"
		[/random]
		[random]
			value="1483191484"
		[/random]
		[random]
			value="589947855"
		[/random]
		[random]
			value="160973243"
		[/random]
		[random]
			value="879420238"
		[/random]
		[random]
			value="2050362979"
		[/random]
		[random]
			value="719361905"
		[/random]
		[random]
			value="750809010"
			[results]
				checksum="rQV6GBwD,UJ+7eQAQJ+xOoaC5U6DfS5lmb>+9w26zYBFaluj9yjnQ1omih>hik67n,e0IoZ07o9kcp0Ad568,m9n<X,+nX08797o60sxBFgnkEzrk-i.-tciji+H>s3M"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Violet has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Eddas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="allan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tsr has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,18,19,19,20,21,22,23"
			y="11,10,10,9,8,8,7,7"
		[/move]
	[/command]
	[command]
		[move]
			x="23,22,21,21,20,19,18"
			y="17,17,18,19,19,20,20"
		[/move]
	[/command]
	[command]
		[move]
			x="22,22,23,23,24"
			y="17,18,19,20,20"
		[/move]
	[/command]
	[command]
		[move]
			x="23,22,21,20,19"
			y="16,16,17,16,17"
		[/move]
	[/command]
	[command]
		[move]
			x="17,18,18,18,18,18,19"
			y="13,12,11,10,9,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blood has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Zen_Clark has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,18"
			y="12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="16,16,17"
			y="13,12,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="1"
			x="18"
			y="12"
		[/recruit]
		[random]
			value="840709828"
		[/random]
		[random]
			value="271320689"
		[/random]
		[random]
			value="1591525043"
		[/random]
		[random]
			value="1602085667"
		[/random]
		[random]
			value="1176219146"
		[/random]
		[random]
			value="1756011475"
		[/random]
		[random]
			value="1212021987"
		[/random]
		[random]
			value="1021929333"
		[/random]
		[random]
			value="2085958153"
		[/random]
		[random]
			value="540560923"
		[/random]
		[random]
			value="2109961532"
		[/random]
		[random]
			value="610900072"
		[/random]
		[random]
			value="2073796518"
		[/random]
		[random]
			value="1630199822"
		[/random]
		[random]
			value="1365872699"
			[results]
				checksum="uanXXm6,wl3GigaA+g95nn6hVh52<,alcaZ.01ah->ke.j8yho864c09je5dob.ld3k,h+bA1+Z...>9<ImYcB->dd8+XYVckKYca0dYfE>bqAh-anyQoXDDBuuCCOtE"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,6,7,8,9"
			y="8,8,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,9,9,9"
			y="7,6,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="specing has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ryanbach has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Cylanna has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,9,8,8,9"
			y="16,17,18,18,19,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,6,7,8"
			y="21,21,22,22"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="-stf- has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="8,8,9"
			y="22,23,24"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9,8,7,7,7,8,8"
			y="10,11,10,10,9,8,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,10"
			y="16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10"
			y="14,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="NecroNerd has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Eras has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,18,17,17,16,16,15"
			y="12,13,14,15,15,16,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Eddas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="joueur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,16,15,14"
			y="12,11,12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="19,19,19,20,20,21"
			y="8,7,6,5,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="General_Ayrsole has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="teddyk has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Sonnenwindig has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="horkheimer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="18"
			y="12"
		[/recruit]
		[random]
			value="1248226587"
		[/random]
		[random]
			value="630306765"
		[/random]
		[random]
			value="228992139"
		[/random]
		[random]
			value="1198135473"
		[/random]
		[random]
			value="2049436920"
		[/random]
		[random]
			value="312595828"
		[/random]
		[random]
			value="766454550"
		[/random]
		[random]
			value="716581367"
		[/random]
		[random]
			value="758666450"
		[/random]
		[random]
			value="1202088762"
		[/random]
		[random]
			value="1777383657"
		[/random]
		[random]
			value="1283637891"
		[/random]
		[random]
			value="2142469344"
		[/random]
		[random]
			value="252878801"
		[/random]
		[random]
			value="1398493127"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0YUg681h64jGjKk7ELbfXlO69>IPFNIDBGnBCSO3srDyLKztBBHx"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="23,22,21,20,19,18,18,17"
			y="7,7,8,8,9,9,10,11"
		[/move]
	[/command]
	[command]
		[move]
			x="18,18,18,18,19"
			y="20,21,22,23,24"
		[/move]
	[/command]
	[command]
		[move]
			x="24,23,22,21,20,19"
			y="20,21,21,22,22,23"
		[/move]
	[/command]
	[command]
		[move]
			x="19,19,19,19,18,17"
			y="17,16,15,14,13,13"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="specing has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10"
			y="4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11,12"
			y="3,3,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="guislo has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,13,14,15"
			y="3,4,3,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="8,9,10,11,12,13"
			y="6,6,5,5,4,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10,11"
			y="7,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="11"
			y="15"
		[/recruit]
		[random]
			value="1110913444"
		[/random]
		[random]
			value="483437326"
		[/random]
		[random]
			value="1470585781"
		[/random]
		[random]
			value="1104768589"
		[/random]
		[random]
			value="78285904"
		[/random]
		[random]
			value="637056372"
		[/random]
		[random]
			value="739338266"
		[/random]
		[random]
			value="1670741819"
		[/random]
		[random]
			value="1643632507"
		[/random]
		[random]
			value="1277043973"
		[/random]
		[random]
			value="1638714719"
		[/random]
		[random]
			value="1246166124"
		[/random]
		[random]
			value="1459496360"
		[/random]
		[random]
			value="968770904"
		[/random]
		[random]
			value="1756395298"
			[results]
				checksum="ACIByNSVYtLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9EumVnpCouMKPBb5tJGPbmz3o>.fjcflW4p97m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="3"
			x="10"
			y="16"
		[/recruit]
		[random]
			value="1179283340"
		[/random]
		[random]
			value="1777668777"
		[/random]
		[random]
			value="65162226"
		[/random]
		[random]
			value="814069580"
		[/random]
		[random]
			value="1140098228"
		[/random]
		[random]
			value="1176075671"
		[/random]
		[random]
			value="1297506907"
		[/random]
		[random]
			value="463200361"
		[/random]
		[random]
			value="133360612"
		[/random]
		[random]
			value="1375792811"
		[/random]
		[random]
			value="1100256734"
		[/random]
		[random]
			value="872698878"
		[/random]
		[random]
			value="899050982"
		[/random]
		[random]
			value="596405593"
		[/random]
		[random]
			value="2259204"
			[results]
				checksum="rQV6GBwD,UJ+7eQAQJ+xOoaC5U6DfS5lmb>+9w26zYBFaluj9yjnQ1omih>hik67n,e0IoZ07o9kcp0Ad568,m9n<X,+nX08797o60sxBFgnkEzrk-i.-tciji+H>s3M"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10"
			y="20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10"
			y="24,23"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11,12,13"
			y="23,23,22,22"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Soliton has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="noobzilla2 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,12,11,10,9"
			y="22,22,23,23,24"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="upo has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,18,18,18,18,19"
			y="12,11,10,9,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Micah has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,18,19,19,20,21,22,23"
			y="11,10,10,9,8,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Jeder has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="19,18,17,16,15"
			y="23,22,23,22,22"
		[/move]
	[/command]
	[command]
		[move]
			x="15,14"
			y="22,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shadow_Poga has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="19,18,17,16,15,14"
			y="24,23,24,23,23,23"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="joueur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="necro has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="15,14,13,12"
			y="17,16,16,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="15"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1406297712"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="470927563"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="424552119"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="56797617"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1806157672"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="155624713"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="981416189"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1149718008"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="14,13,12,12,11"
			y="11,12,12,13,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1422426683"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="924653769"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1576586972"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1386205587"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1337170940"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="581569788"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1152453487"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2121291562"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="17,16,15,14,13,12"
			y="13,13,14,14,15,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1023233676"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1192278754"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="879231538"
			[results]
				chance="40"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1497492952"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1401973312"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1510950168"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="1639855288"
		[/random]
		[random]
			value="2066207618"
		[/random]
		[random]
			value="1016655805"
		[/random]
		[random]
			value="1003321808"
		[/random]
		[random]
			value="404333439"
		[/random]
		[random]
			value="1758897950"
		[/random]
		[random]
			value="146949846"
		[/random]
		[random]
			value="1039163557"
		[/random]
		[random]
			value="228481605"
		[/random]
		[random]
			value="682791948"
		[/random]
		[random]
			value="1024002979"
		[/random]
		[random]
			value="459333881"
		[/random]
		[random]
			value="2087784931"
		[/random]
		[random]
			value="360787019"
		[/random]
		[random]
			value="1593798578"
			[results]
				checksum="6hs5opl9pneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0WUg681h64jGjKk7ELbfXlO69>IPFNIDBGnoCSO3srDyLKztBBJx"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="narf has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WinterKnight has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,9"
			y="15,15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="haroerisNepht has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="11"
			y="15"
		[/recruit]
		[random]
			value="244904006"
		[/random]
		[random]
			value="695457954"
		[/random]
		[random]
			value="547502947"
		[/random]
		[random]
			value="276488726"
		[/random]
		[random]
			value="885280699"
		[/random]
		[random]
			value="197840945"
		[/random]
		[random]
			value="1147429935"
		[/random]
		[random]
			value="1881864640"
		[/random]
		[random]
			value="994479820"
		[/random]
		[random]
			value="514178340"
		[/random]
		[random]
			value="693853695"
		[/random]
		[random]
			value="1730810667"
		[/random]
		[random]
			value="1188547364"
		[/random]
		[random]
			value="1337564790"
		[/random]
		[random]
			value="2003567641"
			[results]
				checksum="ACIByNSVYmLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9zumVnpCouMKPBb5OJGPbmz3o>.fjcflW4p97m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="AntonioMB has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,9,9,10"
			y="16,15,15,14,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="13"
			[/source]
			[destination]
				x="11"
				y="14"
			[/destination]
		[/attack]
		[random]
			value="616241199"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="567179233"
			[results]
				chance="40"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="11"
				y="16"
			[/source]
			[destination]
				x="12"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1657231130"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1272532991"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2008089787"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="749581641"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,10"
			y="16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="14"
			[/source]
			[destination]
				x="11"
				y="14"
			[/destination]
		[/attack]
		[random]
			value="443561909"
			[results]
				chance="40"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="657635067"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10"
			y="16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="12,13"
			y="15,16"
		[/move]
	[/command]
	[command]
		[move]
			x="16,15,14,13,12"
			y="13,14,14,15,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="15"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1144626409"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="544097530"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="85277500"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2112037041"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="23,22,21"
			y="7,6,6"
		[/move]
	[/command]
	[command]
		[move]
			x="21,20,19,18,17,16"
			y="6,5,5,4,4,3"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="16"
				y="3"
			[/source]
			[destination]
				x="15"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="335774711"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1642553580"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="792953306"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1383034593"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1534548725"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="21,20,19,18,17,16"
			y="4,3,3,3,3,2"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="16"
				y="2"
			[/source]
			[destination]
				x="15"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="545398080"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="375942742"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="890423692"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="403675635"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1195108300"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="19,18,17,16,15"
			y="8,8,8,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="yohann has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pentarctagon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WinterKnight has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,12,11,10"
			y="23,24,24,25,24"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="10"
				y="24"
			[/source]
			[destination]
				x="9"
				y="24"
			[/destination]
		[/attack]
		[random]
			value="1321957903"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1068035756"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="254247190"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1007908707"
			[results]
				chance="40"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="210997271"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="14,13,12,11,10"
			y="21,22,22,23,23"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="23"
			[/source]
			[destination]
				x="9"
				y="24"
			[/destination]
		[/attack]
		[random]
			value="1983289976"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1866065358"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="989233560"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1594251422"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="596283781"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="RockForge has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="stella has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1529074063"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="286034913"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12247969"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="304770828"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2117366298"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="656159182"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="350568526"
		[/random]
		[random]
			value="1139265651"
		[/random]
		[random]
			value="857647717"
		[/random]
		[random]
			value="1513518445"
		[/random]
		[random]
			value="973036431"
		[/random]
		[random]
			value="1344305890"
		[/random]
		[random]
			value="2030983475"
		[/random]
		[random]
			value="2100846972"
		[/random]
		[random]
			value="1359755129"
		[/random]
		[random]
			value="424051898"
		[/random]
		[random]
			value="1868087035"
		[/random]
		[random]
			value="2015914312"
		[/random]
		[random]
			value="1250645231"
		[/random]
		[random]
			value="1621230890"
		[/random]
		[random]
			value="294715453"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji--Ug681h64jGjKk7ELbfXlO69>IPFNIDBGnoCSO3srDyLKztBCMx"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="17"
			y="13"
		[/recruit]
		[random]
			value="1148000380"
		[/random]
		[random]
			value="1427461340"
		[/random]
		[random]
			value="373124912"
		[/random]
		[random]
			value="1498568906"
		[/random]
		[random]
			value="419243343"
		[/random]
		[random]
			value="1230772630"
		[/random]
		[random]
			value="864603703"
		[/random]
		[random]
			value="1392279774"
		[/random]
		[random]
			value="427594872"
		[/random]
		[random]
			value="748103530"
		[/random]
		[random]
			value="1345643099"
		[/random]
		[random]
			value="1787350001"
		[/random]
		[random]
			value="1172155428"
		[/random]
		[random]
			value="1066246486"
		[/random]
		[random]
			value="1655780665"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji--Ug681h64jGjKk7ELbfXlO69>IPFNIDBGnoCSO3srDyLKztBCMx"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="13,12"
			y="16,16"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="16"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="146992676"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1714676968"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="930998954"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="602256114"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="752228308"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="289159856"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="18,17,17,16,15,14"
			y="11,12,13,13,14,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tony12466 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stenen has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jdbjdvjdvbjbcv has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,10,11"
			y="14,15,16,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="11"
				y="17"
			[/source]
			[destination]
				x="12"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="752341792"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="598970495"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="11"
				y="16"
			[/source]
			[destination]
				x="12"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="199834993"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1431729571"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="893910529"
			[results]
				chance="40"
				damage="4"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="3"
			x="10"
			y="15"
		[/recruit]
		[random]
			value="292065133"
		[/random]
		[random]
			value="1993227900"
		[/random]
		[random]
			value="1573506789"
		[/random]
		[random]
			value="1641476615"
		[/random]
		[random]
			value="361312984"
		[/random]
		[random]
			value="1421736199"
		[/random]
		[random]
			value="166893830"
		[/random]
		[random]
			value="1616656457"
		[/random]
		[random]
			value="1667192111"
		[/random]
		[random]
			value="1682573554"
		[/random]
		[random]
			value="1931830509"
		[/random]
		[random]
			value="1888383642"
		[/random]
		[random]
			value="1379760226"
		[/random]
		[random]
			value="735687988"
		[/random]
		[random]
			value="226822184"
			[results]
				checksum="rQV6GBwD,UJ+7eQAQJ+xOoaC5U6DfS5lmb>+9w26zYBFaluj9yjnQ1omih>hik67n,e0IoZ07o9kcp0Ad568,m9n<X,+nX08797o60sxBFgnkEzrk-i.-tciji+H>s3M"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10"
			y="13,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="14"
			[/source]
			[destination]
				x="11"
				y="14"
			[/destination]
		[/attack]
		[random]
			value="1012641404"
			[results]
				chance="40"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1352648020"
			[results]
				chance="40"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="11"
				y="15"
			[/source]
			[destination]
				x="12"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1273923281"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1226862600"
			[results]
				chance="60"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="265074737"
			[results]
				chance="60"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Silas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="9"
				y="24"
			[/source]
			[destination]
				x="10"
				y="23"
			[/destination]
		[/attack]
		[random]
			value="730725075"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1323106226"
			[results]
				chance="60"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mond has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9,8,7,6"
			y="16,17,17,18,18"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11,12,13,14"
			y="20,20,20,21,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,14,13,12,11,10,9"
			y="3,3,4,4,4,3,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="timon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11,11,11,10"
			y="7,6,5,4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,12,12,11"
			y="5,5,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="3,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="10,11,12,13,14"
			y="24,24,23,23,22"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Gorthaur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="14"
				y="22"
			[/source]
			[destination]
				x="14"
				y="21"
			[/destination]
		[/attack]
		[random]
			value="1634491724"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="142049472"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="271548966"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="577229040"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1722034179"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="75391283"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="specing has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,11,12,13"
			y="23,23,22,22"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="13"
				y="22"
			[/source]
			[destination]
				x="14"
				y="21"
			[/destination]
		[/attack]
		[random]
			value="581241608"
			[results]
				chance="60"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1026670424"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1888369840"
			[results]
				chance="60"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="578734542"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1613381625"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="304515105"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pentarctagon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="15,14,13,12"
			y="8,8,8,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="7"
			[/source]
			[destination]
				x="11"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="101649024"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1710017967"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="194087166"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2028581535"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="16,15,14,13,13,12,11"
			y="3,3,3,4,5,5,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="11"
				y="6"
			[/source]
			[destination]
				x="11"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="2131399475"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1352586657"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1006179544"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="512374048"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="673972679"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1925536484"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="489879238"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Yoshi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,12,13,13,14"
			y="14,13,13,12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="14,15,16,17,17,18"
			y="14,14,13,13,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="IronEden has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="1"
			x="18"
			y="12"
		[/recruit]
		[random]
			value="245893392"
		[/random]
		[random]
			value="568526689"
		[/random]
		[random]
			value="1450802291"
		[/random]
		[random]
			value="182752133"
		[/random]
		[random]
			value="1307278455"
		[/random]
		[random]
			value="1787713134"
		[/random]
		[random]
			value="1093817446"
		[/random]
		[random]
			value="958347779"
		[/random]
		[random]
			value="1027418459"
		[/random]
		[random]
			value="393248923"
		[/random]
		[random]
			value="1339594732"
		[/random]
		[random]
			value="976727998"
		[/random]
		[random]
			value="1697582274"
		[/random]
		[random]
			value="1218821092"
		[/random]
		[random]
			value="1613688199"
			[results]
				checksum="uanXXm6,wl3GigaA+g95nn6hVh52<,alcaZ.01ah->ke.j8yho864c09je5dob.ld3k,h+bA1+Z9..>9<ImYcB->dd8+XYVckKYca0dYfE>bqAe-anyQoXDDBuuCOOtE"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="17,17,17,17,16,15,14"
			y="13,12,11,10,9,9,8"
		[/move]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16,17"
			y="14,14,13,13,12,12"
		[/move]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16,17"
			y="15,15,14,14,13,13"
		[/move]
	[/command]
	[command]
		[move]
			x="16,15,14,14,13"
			y="2,3,3,4,5"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Taemyr has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11"
			y="4,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="5"
			[/source]
			[destination]
				x="11"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="1267965167"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2043267152"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1435087310"
			[results]
				chance="40"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1763915350"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="630507798"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="11"
				y="7"
			[/source]
			[destination]
				x="12"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="1973399869"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="793967285"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1995439519"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="169745844"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Zephhyre has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,10"
			y="14,13,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,10"
			y="12,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11,10,10,10"
			y="15,14,13,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="0"
			x="8"
			y="19"
		[/recruit]
		[random]
			value="2059965760"
		[/random]
		[random]
			value="1470122193"
		[/random]
		[random]
			value="1148050746"
		[/random]
		[random]
			value="508655463"
		[/random]
		[random]
			value="1805954054"
		[/random]
		[random]
			value="1040556929"
		[/random]
		[random]
			value="361020748"
		[/random]
		[random]
			value="1451559375"
		[/random]
		[random]
			value="2056832994"
		[/random]
		[random]
			value="1781196676"
		[/random]
		[random]
			value="295682994"
		[/random]
		[random]
			value="71657489"
		[/random]
		[random]
			value="1432318294"
		[/random]
		[random]
			value="634914662"
		[/random]
		[random]
			value="863022476"
			[results]
				checksum="lxj+sAh20PB0NmsQ56tLoxNPdOFGJz.MMAvVvoQO,ECJMwDzBrzrTwAoECqSJHEvSS3IzTALqvFArEKTmSKvvPnFtw+QnBRSqBwbD3xFMMEJCCHO+YDPPnPywBn8EE25"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10,11,12,13"
			y="24,23,23,23,23"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="13"
				y="23"
			[/source]
			[destination]
				x="13"
				y="22"
			[/destination]
		[/attack]
		[random]
			value="2039796372"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="644200439"
			[results]
				chance="60"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mond has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="14"
				y="21"
			[/source]
			[destination]
				x="13"
				y="22"
			[/destination]
		[/attack]
		[random]
			value="755261419"
			[results]
				chance="60"
				damage="4"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12,13,13"
			y="17,17,18,19"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11,12,13"
			y="16,17,17,18"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="6,7,8,9,10"
			y="18,18,17,17,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Noobkiller has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Chablan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Nero has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,13,12"
			y="8,8,7,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="6"
			[/source]
			[destination]
				x="11"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="1899194526"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1327275967"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2035747837"
			[results]
				chance="40"
				damage="9"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="alan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,10,9,8,7,6,5"
			y="6,6,7,7,8,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="12,11,10,9,8,8"
			y="7,7,6,6,5,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="8"
				y="4"
			[/source]
			[destination]
				x="9"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="673147665"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="22126204"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1955685692"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="78829640"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="112128634"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="13,13,12,11"
			y="5,6,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="alanne has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="onkeltimmer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,15"
			y="22,22"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="15"
				y="22"
			[/source]
			[destination]
				x="14"
				y="21"
			[/destination]
		[/attack]
		[random]
			value="1384013590"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1026001053"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1282132375"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="640591258"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="499270188"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1641607639"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stewe has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Godkiller has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="RockForge has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,18,17,16,15,15,14"
			y="12,13,14,14,15,16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="varcoldf has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,15,14"
			y="13,14,15,15"
		[/move]
	[/command]
	[command]
		[move]
			x="17,18,18,18,18,19"
			y="12,11,10,9,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="17,18,19,19,19,19"
			y="13,13,14,15,16,17"
		[/move]
	[/command]
	[command]
		[recruit]
			value="1"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="1275344364"
		[/random]
		[random]
			value="305899818"
		[/random]
		[random]
			value="1699875046"
		[/random]
		[random]
			value="1186301546"
		[/random]
		[random]
			value="680855733"
		[/random]
		[random]
			value="1995910079"
		[/random]
		[random]
			value="1542041"
		[/random]
		[random]
			value="1958750551"
		[/random]
		[random]
			value="2051256559"
		[/random]
		[random]
			value="1352787427"
		[/random]
		[random]
			value="1628538450"
		[/random]
		[random]
			value="58161585"
		[/random]
		[random]
			value="1431493346"
		[/random]
		[random]
			value="1989533331"
		[/random]
		[random]
			value="62692388"
			[results]
				checksum="uanXXm6,wl3GigaA+g95nn6hVh52<,alcaZ.01ah->ke.j8yho864c09je5dob.ld3k,h+bA1+Z...>9<ImYcB->dd8+XYVckKYca0dYfE>bqAh-anyQoXDDBuuCCOtE"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dusancic has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,18"
			y="11,12"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,14,15,15,15"
			y="18,18,19,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="15"
				y="21"
			[/source]
			[destination]
				x="15"
				y="22"
			[/destination]
		[/attack]
		[random]
			value="711197415"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="343497043"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1108824949"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1239564069"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1246007465"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="AntonioMB has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ME4 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="onkelsimmer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="14,13,12,11,10"
			y="21,21,20,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,13,13,14"
			y="19,20,21,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="14"
				y="21"
			[/source]
			[destination]
				x="15"
				y="22"
			[/destination]
		[/attack]
		[random]
			value="1233523003"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1877398687"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1547851701"
			[results]
				chance="40"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,14"
			y="23,22"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="14,15,15,16,17,18"
			y="22,22,21,20,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Dreibl has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9,8,7,7,6"
			y="11,11,10,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="6"
				y="8"
			[/source]
			[destination]
				x="5"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="159515243"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2023749148"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1859322643"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18843348"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1425357957"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9,8,7,6,5"
			y="10,11,10,10,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stewe has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="AntonioMB has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="5"
				y="9"
			[/source]
			[destination]
				x="5"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="94732586"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1150728197"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="143594401"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10"
			y="4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,9,8,7,6,5"
			y="4,5,6,6,6,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,9"
			y="5,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="4"
			[/source]
			[destination]
				x="8"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="353277057"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="205586514"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1642589511"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1638840273"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1619575526"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2014511585"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kingas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="humanressource has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="5"
				y="7"
			[/source]
			[destination]
				x="5"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="1762976598"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="5348425"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1267580717"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="640768559"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="alpha1"
			message="those shamans must have multiclassed as barbarians ;) and hi :)"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="11"
			y="15"
		[/recruit]
		[random]
			value="1363295823"
		[/random]
		[random]
			value="1843415164"
		[/random]
		[random]
			value="1296832748"
		[/random]
		[random]
			value="569666150"
		[/random]
		[random]
			value="2042010401"
		[/random]
		[random]
			value="327127252"
		[/random]
		[random]
			value="1891513426"
		[/random]
		[random]
			value="1519453056"
		[/random]
		[random]
			value="1773401681"
		[/random]
		[random]
			value="1652516936"
		[/random]
		[random]
			value="1364406899"
		[/random]
		[random]
			value="585364552"
		[/random]
		[random]
			value="2094606556"
		[/random]
		[random]
			value="1555990620"
		[/random]
		[random]
			value="1577741137"
			[results]
				checksum="ACIByNSVYmLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9zumVnpCouMKPBb5OJGPbmz3o>.fjcflW4p97m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="joueur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="8,9,10,11,12,13"
			y="19,20,20,20,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Twity has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="WackererWichtel"
			message="hi :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Accampo22 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="bildo has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="AntonioMB has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Delvar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="5"
				y="8"
			[/source]
			[destination]
				x="5"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="121550213"
			[results]
				chance="60"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2068544442"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1813429394"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1146646691"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2098452985"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="JTWStephens has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,10,9,8,7,6"
			y="7,7,7,6,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Souleater has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="6"
				y="7"
			[/source]
			[destination]
				x="5"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="717430423"
			[results]
				chance="60"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1544346876"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1201153652"
			[results]
				chance="60"
				damage="7"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shine has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Asta has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="8,8,9,10,11"
			y="4,5,6,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="RockForge has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Revi1337 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Yoshi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="hixn has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,11,10,9,8,7"
			y="6,7,7,7,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Zorro_ has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Beayu has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="LabRat has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blakepl has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Hasire has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,14,13"
			y="13,14,13,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Real_Jimmy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,12,11,10"
			y="11,11,11,11,10"
		[/move]
	[/command]
	[command]
		[move]
			x="19,18,17,16,15"
			y="8,7,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shine has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="1672156064"
		[/random]
		[random]
			value="824658238"
		[/random]
		[random]
			value="1591225812"
		[/random]
		[random]
			value="1462394601"
		[/random]
		[random]
			value="1876287977"
		[/random]
		[random]
			value="124470842"
		[/random]
		[random]
			value="1190737613"
		[/random]
		[random]
			value="791009805"
		[/random]
		[random]
			value="1364912762"
		[/random]
		[random]
			value="821685628"
		[/random]
		[random]
			value="1816832342"
		[/random]
		[random]
			value="1968703096"
		[/random]
		[random]
			value="1189307928"
		[/random]
		[random]
			value="1942956089"
		[/random]
		[random]
			value="425616088"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji--Ug681h64jGjKk7ELbfXlO69>IPFNIDBGnoCSO3srDyLKztBCMx"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="17"
			y="13"
		[/recruit]
		[random]
			value="900297240"
		[/random]
		[random]
			value="1588623693"
		[/random]
		[random]
			value="263224043"
		[/random]
		[random]
			value="165719727"
		[/random]
		[random]
			value="1666808931"
		[/random]
		[random]
			value="394964657"
		[/random]
		[random]
			value="1192516075"
		[/random]
		[random]
			value="1499971227"
		[/random]
		[random]
			value="1591058486"
		[/random]
		[random]
			value="785266913"
		[/random]
		[random]
			value="2117146656"
		[/random]
		[random]
			value="714808717"
		[/random]
		[random]
			value="361994829"
		[/random]
		[random]
			value="1005075021"
		[/random]
		[random]
			value="1490585102"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0YUg681h64jGjKk7ELbfXlO69>IPFNIDBGnBCSO3srDyLKztBBHx"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="First_Jimmy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,17,16,15"
			y="12,13,13,13"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,19,20,21,22,23,24"
			y="20,20,19,20,20,21,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,14,15,16,17,18,19"
			y="21,21,22,22,23,23,24"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="First_Jimmy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,16,17,18,19"
			y="21,20,20,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="14,15,16,17,18"
			y="21,21,20,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,9,9,10"
			y="4,5,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="6"
			[/source]
			[destination]
				x="11"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="353866219"
			[results]
				chance="40"
				damage="3"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="6"
				y="8"
			[/source]
			[destination]
				x="5"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="1811869126"
			[results]
				chance="30"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2040218436"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="532886256"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="504980266"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="354873247"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="munk3ygrl has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tank has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="5"
				y="9"
			[/source]
			[destination]
				x="5"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="2139409621"
			[results]
				chance="30"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="massaker has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Nano2 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Jon0 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blopa has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="7,7,6,5,5"
			y="8,7,6,7,8"
		[/move]
	[/command]
	[command]
		[move]
			x="15,14,13,12,11"
			y="7,6,7,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Fazyluck has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="6,6,7,8,9,9"
			y="7,6,6,5,5,4"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17,17,17,16,15,14"
			y="13,12,11,10,9,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bjorn has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,14"
			y="13,14,13"
		[/move]
	[/command]
	[command]
		[move]
			x="15,16,17,18"
			y="13,13,13,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="1092102997"
		[/random]
		[random]
			value="1825122876"
		[/random]
		[random]
			value="1187406519"
		[/random]
		[random]
			value="1824190488"
		[/random]
		[random]
			value="1281257907"
		[/random]
		[random]
			value="1897412020"
		[/random]
		[random]
			value="894433408"
		[/random]
		[random]
			value="1516552368"
		[/random]
		[random]
			value="569508612"
		[/random]
		[random]
			value="1843756099"
		[/random]
		[random]
			value="64172538"
		[/random]
		[random]
			value="712557122"
		[/random]
		[random]
			value="1512704222"
		[/random]
		[random]
			value="1565081646"
		[/random]
		[random]
			value="2116361105"
			[results]
				checksum="6hs5opl9pneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0WUg681h64jGjKk7ELbfXlO69>IPFNIDBGnoCSO3srDyLKztBBJx"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tank has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,17,17"
			y="12,13,14"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shine_ has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,24,24,24,24,24,24,24,25"
			y="20,19,18,17,16,15,14,13,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="maca1234 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Flamelance1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,20,21,22,23,24"
			y="20,19,20,20,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,20,21,21,21,21,20"
			y="24,23,23,22,21,20,19"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9,8,7,7,6"
			y="6,7,7,8,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="6,6,6"
			y="8,9,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,5"
			y="9,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="10"
			y="15"
		[/recruit]
		[random]
			value="1516033425"
		[/random]
		[random]
			value="908371476"
		[/random]
		[random]
			value="126823501"
		[/random]
		[random]
			value="1665463290"
		[/random]
		[random]
			value="925266568"
		[/random]
		[random]
			value="74702965"
		[/random]
		[random]
			value="316707713"
		[/random]
		[random]
			value="1893457862"
		[/random]
		[random]
			value="287360779"
		[/random]
		[random]
			value="948895702"
		[/random]
		[random]
			value="1915889609"
		[/random]
		[random]
			value="1708052779"
		[/random]
		[random]
			value="1620982663"
		[/random]
		[random]
			value="114895399"
		[/random]
		[random]
			value="1924886924"
			[results]
				checksum="ACIByNSVYmLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9zumVnpCouMKPBb5oJGPbmz3o>.fjcflW4pf7m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,9,9,8"
			y="16,15,15,14,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Argos has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,14,13,12"
			y="13,14,14,15,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="15"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="765123687"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="439603545"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1590645202"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="125545143"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dethtoll has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="13,13,13,13,13,12,11"
			y="13,14,15,16,17,17,17"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="17"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1583609600"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="662517440"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1480369280"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1068772193"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25809011"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1414387819"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Comandante has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,12"
			y="16,17,16"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="16"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1884272593"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1424931372"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="528299320"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1520733036"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1262738078"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="903920686"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,10,10,11,11"
			y="10,11,12,13,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1267642818"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="622675128"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1786849570"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1497680845"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="540052328"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2126359998"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1615588336"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1050557100"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Zorro_ has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,12"
			y="13,14,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1275475040"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="108773474"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="109228934"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="973178851"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="896631930"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1223147212"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="RedErik has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,12,11,10"
			y="8,9,9,10,10"
		[/move]
	[/command]
	[command]
		[move]
			x="11,10,9,8,7"
			y="7,7,8,8,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="7"
				y="9"
			[/source]
			[destination]
				x="6"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="1501281927"
			[results]
				chance="60"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="390497473"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1138836881"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1466489937"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1074668062"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1853540397"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="isra has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="c4rLOs8 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="9,9,8,7,6,6,6"
			y="4,5,5,6,6,7,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="6"
				y="8"
			[/source]
			[destination]
				x="6"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="763128310"
			[results]
				chance="60"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="837073035"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1449591676"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1906895743"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1408747187"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1988844645"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="5,5"
			y="8,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="5"
				y="9"
			[/source]
			[destination]
				x="6"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="353862590"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="680660064"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="713997755"
			[results]
				chance="60"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1327705792"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="395500705"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="64744439"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tristan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,13,13,12"
			y="15,15,14,13"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17,18"
			y="14,13,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="quantum has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="18"
			y="11"
		[/recruit]
		[random]
			value="189777321"
		[/random]
		[random]
			value="258551721"
		[/random]
		[random]
			value="1065621965"
		[/random]
		[random]
			value="222309418"
		[/random]
		[random]
			value="1785168323"
		[/random]
		[random]
			value="615116512"
		[/random]
		[random]
			value="1822741105"
		[/random]
		[random]
			value="803519067"
		[/random]
		[random]
			value="311701377"
		[/random]
		[random]
			value="482678193"
		[/random]
		[random]
			value="285437248"
		[/random]
		[random]
			value="2046402779"
		[/random]
		[random]
			value="873231231"
		[/random]
		[random]
			value="803013089"
		[/random]
		[random]
			value="1596606527"
			[results]
				checksum="6hs5opl9mneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0YUg681h64jGjKk7ELbfXlO69>IPFNIDBGnBCSO3srDyLKztBBHx"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lobezno has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,25,25,24,23,23,23,23"
			y="13,12,11,10,10,9,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ansengrinth has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,4"
			y="10,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="4"
				y="9"
			[/source]
			[destination]
				x="5"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="1129139195"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="114330676"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="6,5"
			y="10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="5"
				y="10"
			[/source]
			[destination]
				x="5"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="434301276"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1474570640"
			[results]
				chance="60"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2101383373"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="6,6,5,4,3"
			y="9,10,11,10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tyler has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Revi1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tyler has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="8,9,9,10"
			y="13,14,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="10"
			y="16"
		[/recruit]
		[random]
			value="1741471874"
		[/random]
		[random]
			value="809002531"
		[/random]
		[random]
			value="671278433"
		[/random]
		[random]
			value="446209748"
		[/random]
		[random]
			value="1138735228"
		[/random]
		[random]
			value="145740137"
		[/random]
		[random]
			value="390016919"
		[/random]
		[random]
			value="1598603612"
		[/random]
		[random]
			value="1996307639"
		[/random]
		[random]
			value="1015751038"
		[/random]
		[random]
			value="1165054000"
		[/random]
		[random]
			value="1201575185"
		[/random]
		[random]
			value="27886415"
		[/random]
		[random]
			value="985619594"
		[/random]
		[random]
			value="242790328"
			[results]
				checksum="ACIByNSVYmLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9zumVnpCouMKPBb5oJGPbmz3o>.fjcflW4pf7m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,9"
			y="16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tyler has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="11"
				y="16"
			[/source]
			[destination]
				x="12"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1355805706"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1587729165"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1720978437"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="636370395"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="1Revi1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10"
			y="15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,9"
			y="15,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10,11"
			y="16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="15"
			[/source]
			[destination]
				x="12"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1918367209"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="115137461"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="536524029"
			[results]
				chance="60"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,9"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,19,20,21"
			y="20,20,19,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="17"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1610814257"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1954794300"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1985733476"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="782399429"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="873621210"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1839449951"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="16"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1364685897"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1455696017"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="702110407"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="916097817"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="79751862"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="68392860"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tishbe has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,11,10,9,9"
			y="13,13,13,14,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="15"
			[/source]
			[destination]
				x="10"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1843202698"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1415360093"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="162740641"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="920670241"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tishbe2 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,10"
			y="14,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="14"
			[/source]
			[destination]
				x="10"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="740531875"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="722795969"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="473468532"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="356122889"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1271344673"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1376242493"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="10,10,10,10,9,8,8"
			y="10,11,12,13,14,14,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="8"
				y="15"
			[/source]
			[destination]
				x="9"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="354357794"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="930757747"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1545900025"
			[results]
				chance="60"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1747451141"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="818034262"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1989779649"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="12,12"
			y="14,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="15"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1299722008"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="578537335"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="13438285"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="123537990"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="18,17,16,15,14,13,12"
			y="11,12,12,13,13,14,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="2021111870"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2029592091"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2076032393"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1196282645"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="758323117"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="678346414"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="16"
			y="13"
		[/recruit]
		[random]
			value="1737252609"
		[/random]
		[random]
			value="1703400625"
		[/random]
		[random]
			value="2143573264"
		[/random]
		[random]
			value="2098431665"
		[/random]
		[random]
			value="2077115873"
		[/random]
		[random]
			value="73299"
		[/random]
		[random]
			value="1103470818"
		[/random]
		[random]
			value="1392810129"
		[/random]
		[random]
			value="1995041058"
		[/random]
		[random]
			value="396342213"
		[/random]
		[random]
			value="1466827502"
		[/random]
		[random]
			value="1253498873"
		[/random]
		[random]
			value="753655491"
		[/random]
		[random]
			value="2062605864"
		[/random]
		[random]
			value="375944252"
			[results]
				checksum="jfC5opl9pneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji0.Ug681h64jGjKk7ELYl9YI95gAxGxnvPuSIVEH>yBMtLAwyHPDR"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="17"
			y="13"
		[/recruit]
		[random]
			value="2035219766"
		[/random]
		[random]
			value="588072285"
		[/random]
		[random]
			value="512174569"
		[/random]
		[random]
			value="1882777176"
		[/random]
		[random]
			value="984414498"
		[/random]
		[random]
			value="1979002071"
		[/random]
		[random]
			value="988792401"
		[/random]
		[random]
			value="1738069990"
		[/random]
		[random]
			value="1894124287"
		[/random]
		[random]
			value="1364736654"
		[/random]
		[random]
			value="599431846"
		[/random]
		[random]
			value="1257609992"
		[/random]
		[random]
			value="655662594"
		[/random]
		[random]
			value="637008854"
		[/random]
		[random]
			value="1421463969"
			[results]
				checksum="jfC5opl9pneud6314Hg106a+elObfd5dh>d-kgk5j40fd5c,laoh2>q4W68<jj1,,Bh1+4l10mji-0Ug681h64jGjKk7ELYl9YI95gAxGxnvPuSVVEH>yBMtLAwyHUqR"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="18,17,16,15,14,13"
			y="12,13,13,14,14,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Godkillery has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="7,7,7,6,5,4"
			y="9,10,11,11,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Wesley has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="6,7,7,8,9,10"
			y="8,9,10,10,10,10"
		[/move]
	[/command]
	[command]
		[move]
			x="5,5"
			y="9,8"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="23,22,22,22,21"
			y="7,6,5,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,8"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9"
			y="15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10"
			y="16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="10"
			y="16"
		[/recruit]
		[random]
			value="2058420242"
		[/random]
		[random]
			value="1936262780"
		[/random]
		[random]
			value="1815986609"
		[/random]
		[random]
			value="480293872"
		[/random]
		[random]
			value="2109757484"
		[/random]
		[random]
			value="882563113"
		[/random]
		[random]
			value="1795309861"
		[/random]
		[random]
			value="599059323"
		[/random]
		[random]
			value="717672418"
		[/random]
		[random]
			value="2051817882"
		[/random]
		[random]
			value="1979535796"
		[/random]
		[random]
			value="923421465"
		[/random]
		[random]
			value="1197261607"
		[/random]
		[random]
			value="1102900280"
		[/random]
		[random]
			value="525076102"
			[results]
				checksum="ACIByNSVYzLXPemyRXKFwqFrLmVQqEv0TwtBGgNMvJHtOMFtHrtKmNzMnuxEPDq6BPSLFIOJqR+ProSyETFwFyA9uumVnpCouMKPBb5OJGPbmz3o>.fjcflW4pf7m5p7"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,9,8,8,9,10"
			y="20,20,19,18,18,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="17"
			[/source]
			[destination]
				x="11"
				y="17"
			[/destination]
		[/attack]
		[random]
			value="887979571"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1207939975"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1066177476"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="15"
			[/source]
			[destination]
				x="10"
				y="14"
			[/destination]
		[/attack]
		[random]
			value="1221665452"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="463066855"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2069906023"
			[results]
				chance="70"
				damage="8"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mattweber has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="9"
				y="16"
			[/source]
			[destination]
				x="9"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1023790626"
			[results]
				chance="60"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1656319769"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="8"
				y="16"
			[/source]
			[destination]
				x="8"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="746993858"
			[results]
				chance="60"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="186286491"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1345291083"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="16"
			[/source]
			[destination]
				x="12"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1245387051"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1958139442"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="976114486"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="734718525"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="255535973"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="495971573"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="15"
			[/source]
			[destination]
				x="12"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="2092516914"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="368967153"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1018247161"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1281462038"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="348617622"
			[results]
				chance="60"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tommy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SeaBass has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="LakeBass has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="3,4,5,6,7,8"
			y="10,9,10,9,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bud_Spencer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="4,5,6,7,7"
			y="9,10,9,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="5,6,7"
			y="10,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Noob_Brasil has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Godkillery has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="General_Ayrsole has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="7,7,6"
			y="9,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="6"
				y="7"
			[/source]
			[destination]
				x="5"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="1988076832"
			[results]
				chance="40"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1427058846"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="593010893"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="varcoldf has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="5,5,6,7"
			y="8,9,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="PsychoticKittens has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="7"
				y="9"
			[/source]
			[destination]
				x="8"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="524637731"
			[results]
				chance="60"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="56163449"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="376869086"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="406062533"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1469893500"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="669078241"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="teddyk has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Dcwahl has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="4,4,4,5,5"
			y="11,10,9,9,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="5"
				y="8"
			[/source]
			[destination]
				x="6"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="695081235"
			[results]
				chance="50"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1517434361"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="114746301"
			[results]
				chance="50"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1620734130"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="81759205"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1820614257"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="17,16,15,14,13,12"
			y="13,13,14,14,15,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="15"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1927729206"
			[results]
				chance="40"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1616415951"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1408221777"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1122804942"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1790466121"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19374886"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="General_Ayrsole has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,14,13,12,11"
			y="13,14,13,13,13,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="14"
			[/source]
			[destination]
				x="11"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="588389829"
			[results]
				chance="40"
				damage="12"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="17"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1028847552"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="80939856"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="849649448"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="914475945"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="530403270"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1225974682"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1485194812"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="59158834"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="16"
			[/source]
			[destination]
				x="11"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="1666991498"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1706744461"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1517567244"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1342320491"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="389448529"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1126900239"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1944362370"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="180318384"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tishbe has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="8,7"
			y="15,16"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="7"
				y="16"
			[/source]
			[destination]
				x="8"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="2084628081"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="821710725"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="298196359"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="254508318"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="984098913"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1684672391"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="9,8"
			y="15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="meganoob has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="8"
				y="15"
			[/source]
			[destination]
				x="9"
				y="16"
			[/destination]
		[/attack]
		[random]
			value="101340705"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="886601807"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1801352615"
			[results]
				chance="60"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Jaguar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,10,10,10,9,9"
			y="10,11,12,13,14,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="15"
			[/source]
			[destination]
				x="10"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1955121744"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="131767238"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="219231352"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2135709141"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="12,11,10"
			y="14,14,14"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="14"
			[/source]
			[destination]
				x="10"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1291666623"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1460661014"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="855185827"
			[results]
				chance="40"
				damage="11"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="392834518"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="13,12,11"
			y="14,14,15"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="15"
			[/source]
			[destination]
				x="10"
				y="15"
			[/destination]
		[/attack]
		[random]
			value="1659999018"
			[results]
				chance="40"
				damage="12"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="WackererWichtel"
			message="gg"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="uuh :-)"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="gg"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="WackererWichtel"
			message=":)"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="CU "
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="WackererWichtel"
			message="cya"
			side="1"
		[/speak]
	[/command]
[/replay]
[snapshot]
	campaign_type="multiplayer"
	completion="running"
	current_tod="5"
#textdomain wesnoth-multiplayer
	description=_ "Players must traverse all manner of terrain in pursuit of victory on this multi-fronted duel map."
	difficulty="NORMAL"
	end_text_duration="0"
	experience_modifier="70"
	hash="cy9,5.FpN3rBcL.L4e+O18wLdEdI4Tz0IvgfbwAuK9N2059<42Xr0yhIQSuhssS,4T<A9.6ab>JpBPvMvrcHSQVHi2E+1XTwfH7D.FR+I29N,oCK6dipd3xe.OJ>Piko"
	id="multiplayer_Silverhead_Crossing"
	label="2p - Silverhead Crossing"
	map_data="border_size=1
usage=map

Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Wo          , Ww          , Ww          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Wo          , Ww          , Ww          , Ww          , Ww          , Uh          , Xu          , Xu          , Ww          , Hh          , Wo          , Ww          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Ww          , Gs^Fp       , Ww          , Xu          , Xu          , Gs^Fp       , Uu^Uf       , Uh          , Gs^Fp       , Mm          , Gg^Fet      , Ww          , Ww          , Ww          , Ww          , Ww          , Wo          , Ww          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Hh          , Gg          , Gg          , Gg          , Gg          , Uh          , Gg          , Gg          , Gg          , Ggf         , Gg          , Gg          , Gg          , Gs^Fp       , Hh          , Mm          , Gs^Fms      , Ww          , Ww          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Ww          , Wo          , Ww          , Mm          , Gs^Fms      , Gg^Ve       , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Wo          , Wwf         , Gg          , Gg          , Gg          , Rr          , Gg^Vc       , Gg          , Wwf         , Chw         , Hh          , Gs^Fp       , Ww          , Wo          
Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Gs^Fp       , Xu          , Wwf         , Xu          , Wwf         , Wwf         , Gg          , Wwf         , Wwf         , Wwf         , Chw         , Rr          , Rr          , Wwf         , Ww          , Wo          
Wo          , Wo          , Wo          , Ww          , Ww          , Gs^Fp       , Rd          , Chw         , Kh          , Ch          , Gg          , Gg          , Rd          , Rd^Uf       , Uh          , Xu          , Xu          , Rd^Uf       , Xu          , Wwf         , Wwf         , Gg          , Gg          , Hh          , Hh          , Wwf         , Ww          , Ww          , Xu          
Wo          , Wo          , Wo          , Wo          , Gg          , Ggf         , Hh          , Mm          , Wwf         , Chw         , Rd          , Uu^Vud      , Uu          , Ur          , Uu^Uf       , Ur          , Gs^Fp       , Xu          , Rd          , Gg          , Wwf         , Gg          , Gg          , Gg^Ve       , Gg^Fet      , Wwf         , Gs^Fp       , Ww          , Xu          
Wo          , Wo          , Ww          , Ww          , Ww          , Gg^Ve       , Wwf         , Gg^Fet      , Wwf         , Ggf         , Xu          , Uu          , Xu          , Uu^Uf       , Wwf         , Uh          , Xu          , Rd          , Gg          , Gg^Ve       , Kh          , Wwf         , Gg          , Gg          , Xu          , Wwf         , Wwf         , Xu          , Xu          
Wo          , Wo          , Ww          , Ww          , Gg          , Wwf         , Gg          , Wwf         , Xu          , Xu          , Gg          , Xu          , Gg          , Gg          , Ww          , Gg          , Gg          , Xu          , Gg          , Gg          , Ww          , Chw         , Ch          , Gg          , Xu          , Xu          , Uh          , Xu          , Xu          
Ww          , Ww          , Ww          , Gg          , Gg          , Gs^Fds      , Gg          , Rd          , Gg          , Gg          , Gg^Vc       , Gg          , Gs^Fms      , Ww          , Wo          , Ww          , Ww          , Gg          , Wwf         , Wwf         , Gg          , Ww          , Kh          , Gg          , Rd          , Gs^Fp       , Rd          , Xu          , Xu          
Ww          , Ww          , Gg          , Gg          , 1 Kh        , Gg          , Rd          , Rd          , Mm          , Gs^Fp       , Gg          , Gg          , Gg          , Ww          , Wo          , Wo          , Ww          , Wwf         , Kh          , Gs^Fms      , Ggf         , Gg          , Gg          , Gg          , Hh          , Rd          , Gg          , Xu          , Xu          
Ww          , Ww          , Ggf         , Gg          , Ch          , Ch          , Ggf         , Gg          , Gg          , Hh          , Gg          , Gs^Fp       , Ww          , Ww          , Ww          , Ww          , Wwf         , Ss^Vhs      , Kh          , Gg          , Hh          , Gs^Fds      , Gg          , Mm          , Gg          , Gg          , Ww          , Gg          , Gg          
Ww          , Gg          , Gg          , Rd          , Ch          , Ch          , Gg          , Gg          , Gg          , Gg          , Hh          , Ww          , Wwf         , Wwf         , Rr          , Rr          , Chw         , Chw         , Wwf         , Gg          , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gs^Fp       , Ww          , Ww          , Ww          
Ww          , Wwf         , Wwf         , Wwf         , Wwf         , Ch          , Kh          , Wwf         , Wwf         , Gg          , Wwf         , Wwf         , Chw         , Wwf         , Rr          , Wwf         , Wwf         , Wwf         , Gs^Fp       , Wwf         , Wwf         , Wwf         , 2 Kud       , Wwf         , Gg          , Wwf         , Ww          , Wo          , Wo          
Gs^Fds      , Gs^Fms      , Hh          , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Gg          , Wwf         , Kh          , Chw         , Wwf         , Rr          , Mm          , Wwf         , Ww          , Ww          , Gg          , Gg          , Hh          , Gg          , Gg          , Cud         , Cud         , Gg          , Gg          , Ww          , Xu          
Rd          , Rd          , Rd          , Gg          , Rd          , Gg          , Gs^Fp       , Mm          , Hh          , Gg          , Kh          , Ss^Vhs      , Ww          , Ww          , Wo          , Ww          , Ww          , Ww          , Gg          , Gg          , Gg          , Mm          , Gg          , Kud         , Cud         , Rd          , Gg          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Rd          , Rd          , Rd          , Rd          , Gg          , Gg          , Wwf         , Wwf         , Ww          , Ww          , Ww          , Ww          , Ww          , Gs^Fms      , Ggf         , Gg^Ve       , Gs^Fds      , Gg          , Cud         , Cud         , Gg          , Rd          , Xu          , Xu          , Xu          
Xu          , Xu          , Uu^Uf       , Uu^Uf       , Uh          , Gg          , Kud         , Gg          , Wwf         , Wwf         , Xu          , Ww          , Hh          , Gs^Fp       , Gs^Fp       , Hh          , Ww          , Gg          , Hh          , Hh          , Xu          , Rd          , Rd          , Gg          , Rd          , Rd          , Gg          , Uu^Uf       , Uu^Uf       
Xu          , Xu          , Cud         , Wwf         , Xu          , Xu          , Wwf         , Cud         , Kud         , Xu          , Xu          , Xu          , Xu          , Cud         , Xu          , Cud         , Xu          , Xu          , Xu          , Xu          , Gs^Fp       , Gg          , Rd          , Rd          , Gg          , Gg          , Gs^Fp       , Xu          , Xu          
Xu          , Xu          , Cud         , Wwf         , Wwf         , Ww          , Gg          , Cud         , Rd          , Rd          , Uu^Vu       , Ur          , Uu^Uf       , Wwf^Uf      , Xu          , Wwf^Uf      , Uu^Uf       , Ur          , Uu^Vu       , Rd          , Rd          , Gg          , Rd          , Gg          , Uu^Vud      , Uu^Uf       , Cud         , Xu          , Xu          
Wwf         , Wwf         , Wwf         , Wwf         , Gs^Fp       , Gg^Vc       , Rd          , Rd          , Xu          , Ur          , Ur          , Uh          , Uh          , Wwf         , Wwf         , Wwf         , Uh          , Uh          , Ur          , Ur          , Xu          , Rd          , Gg          , Gg          , Gg          , Ur          , Cud         , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Gg          , Ggf         , Mm          , Rd          , Rd          , Xu          , Rd          , Xu          , Wwf         , Wwf         , Ggf         , Wwf         , Wwf         , Xu          , Rd          , Xu          , Rd          , Rd          , Kud         , Gg          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Hh          , Gs^Fp       , Gg          , Gg          , Rd          , Gg          , Gg          , Wwf         , Mm          , Gs^Fp       , Hh          , Gg          , Wwf         , Gg          , Rd          , Gg          , Cud         , Cud         , Cud         , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Rd^Uf       , Gg          , Gs^Fms      , Gg^Ve       , Gg          , Wwf         , Gg          , Gg          , Gg          , Gs^Fms      , Gg          , Wwf         , Gg          , Gg^Ve       , Gs^Fds      , Rd          , Rd^Uf       , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Ur          , Xu          , Xu          , Ggf         , Gg          , Wwf         , Gg          , Hh          , Gg          , Mm          , Hh          , Wwf         , Wwf         , Ggf         , Xu          , Xu          , Ur          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Ur          , Xu          , Rr          , Xu          , Wwf         , Wwf         , Gs^Fp       , Gg          , Xu          , Gg          , Gg          , Gg          , Wwf         , Xu          , Xu          , Ur          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Rr          , Wwf         , Chw         , Wwf         , Rr          , Ur          , Xu          , Uu^Uf       , Xu          , Ur          , Gs^Fp       , Rr          , Wwf         , Wwf         , Chw         , Wwf         , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Wwf         , Xu          , Xu          , Rr          , Rr          , Wwf         , Uh          , Wwf         , Uu^Uf       , Wwf         , Rr          , Rr          , Rr          , Rr          , Wwf         , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Wo          , Wwf         , Ur          , Wwf         , Wo          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Uh          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
"
	mp_countdown="yes"
	mp_countdown_action_bonus="20"
	mp_countdown_init_time="270"
	mp_countdown_reservoir_time="270"
	mp_countdown_turn_bonus="200"
	mp_fog="yes"
	mp_shroud="no"
	mp_use_map_settings="yes"
	mp_village_gold="2"
	name=_ "2p - Silverhead Crossing"
	next_underlying_unit_id="36"
#textdomain wesnoth
	objectives=_ "Victory:
@Defeat enemy leader(s)"
	observer="yes"
	playing_team="1"
	random_calls="1"
	random_seed="2040054078"
	random_start_time="no"
	snapshot="yes"
	turn_at="12"
	turns="-1"
	unit_wml_ids="Elvish Archer,Elvish Fighter,Elvish Scout,Elvish Shaman,Naga Fighter,Orcish Assassin,Orcish Grunt,Red Mage,Troll Rocklobber,era_events"
	version="1.6"
	[side]
		action_bonus_count="13"
		aggression="0.5"
		allow_player="yes"
		caution="0.25"
		colour="1"
		controller="network"
		countdown_time="270000"
		current_player="WackererWichtel"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
		gold="8"
		hidden="no"
		id="WackererWichtel1"
		income="0"
		leader_value="3"
		name="WackererWichtel"
		no_leader="yes"
		number_of_possible_recruits_to_force_recruit="3.1"
		objectives=_ "Victory:
@Defeat enemy leader(s)"
		objectives_changed="yes"
		recruit="Elvish Archer,Elvish Fighter,Elvish Scout,Elvish Shaman,Mage,Merman Hunter,Wose"
		recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
		save_id="WackererWichtel1"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="1"
		start_gold="100"
		team_name="west"
#textdomain wesnoth-multiplayer
		user_team_name=_ "teamname^West"
		village_gold="2"
		village_value="1"
		villages_per_scout="8"
		[ai]
			recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
			villages_per_scout="8"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[ai]
			villages_per_scout="8"
		[/ai]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="14"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Elvish Fighter-4"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Mad"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="4"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="8"
			y="8"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Rider"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="18"
			die_sound="horse-die.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Elvish Scout-5"
			image="units/elves-wood/scout.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Scout"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="30"
			max_moves="10"
			movement="9"
			movement_type="woodland"
			moves="10"
			name="Elvor"
			profile="portraits/elves/scout.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Scout"
			undead_variation="mounted"
			underlying_id="5"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="21"
			y="4"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-300"
						image="units/elves-wood/scout-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-300"
						image="units/elves-wood/scout-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-300"
					end="-50"
					image="units/elves-wood/scout-attack2.png"
				[/frame]
				[frame]
					begin="-50"
					end="50"
					image="units/elves-wood/scout-moving.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-175"
					image="units/elves-wood/scout.png"
					sound="horse-elf-canter.wav"
				[/frame]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/scout-moving.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/scout-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/scout-attack.png"
						sound="sword-1.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/elves-wood/scout-moving.png"
				[/frame]
				[frame]
					begin="200"
					end="250"
					image="units/elves-wood/scout.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/scout.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/scout-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/scout-defend.png"
						sound="horse-hit-1.ogg,horse-hit-2.ogg,horse-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/scout-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/scout.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-1.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-3.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-4.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-5.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-6.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-9.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-10.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-11.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-12.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-13.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-14.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-15.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-16.png"
				[/frame]
			[/idle_anim]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/elves-wood/scout-moving.png"
				[/frame]
			[/movement_anim]
			[portrait]
				image="portraits/elves/transparent/scout.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/scout.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="7"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="2"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Elvish Fighter-13"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Amáriorfin"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="13"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="10"
			y="17"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Druid,Elvish Sorceress"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="32"
			id="Elvish Shaman-14"
			image="units/elves-wood/shaman.png"
#textdomain wesnoth-units
			language_name=_ "female^Elvish Shaman"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="32"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Eowieng"
			profile="portraits/elves/shaman.png~RIGHT()"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Shaman"
			underlying_id="14"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			x="21"
			y="20"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="entangle"
				[/filter_attack]
				[missile_frame]
					begin="-200"
					end="50"
					image="projectiles/entangle.png"
					image_diagonal="projectiles/entangle.png"
					offset="1.0"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-375"
					halo="halo/elven/nature-halo1.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-375"
					end="-300"
					halo="halo/elven/nature-halo2.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-300"
					end="-225"
					halo="halo/elven/nature-halo3.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-225"
					end="-150"
					halo="halo/elven/nature-halo4.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[frame]
					begin="-150"
					end="-75"
					halo="halo/elven/nature-halo5.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[if]
					hits="hit"
					slowed_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									slowed="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[slowed_sound_frame]
						duration="100"
						sound="slowed.wav"
					[/slowed_sound_frame]
				[/if]
				[frame]
					begin="-75"
					end="0"
					halo="halo/elven/nature-halo6.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
					sound="entangle.wav"
				[/frame]
				[frame]
					begin="-0"
					end="50"
					halo="halo/elven/nature-halo7.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="50"
					end="100"
					halo="halo/elven/nature-halo8.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/shaman.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="175"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/shaman-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-200"
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal1.png"
				[/frame]
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal2.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-1.png"
					image="units/elves-wood/shaman-heal3.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-2.png"
					image="units/elves-wood/shaman-heal4.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-3.png"
					image="units/elves-wood/shaman-heal5.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-4.png"
					image="units/elves-wood/shaman-heal6.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-5.png"
					image="units/elves-wood/shaman-heal7.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-6.png"
					image="units/elves-wood/shaman-heal8.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-7.png"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
				[frame]
					duration="30"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/druidstaff.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "entangle"
				name="entangle"
				number="2"
				range="ranged"
				type="impact"
				[specials]
					[slow]
#textdomain wesnoth
						description=_ "Slow:
This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
						id="slow"
						name=_ "slows"
					[/slow]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Elvish Fighter-17"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Til"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Fighter"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="24"
			y="20"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Druid,Elvish Sorceress"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="32"
			id="Elvish Shaman-18"
			image="units/elves-wood/shaman.png"
#textdomain wesnoth-units
			language_name=_ "female^Elvish Shaman"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="32"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Ganiel"
			profile="portraits/elves/shaman.png~RIGHT()"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Shaman"
			underlying_id="18"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			x="7"
			y="8"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="entangle"
				[/filter_attack]
				[missile_frame]
					begin="-200"
					end="50"
					image="projectiles/entangle.png"
					image_diagonal="projectiles/entangle.png"
					offset="1.0"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-375"
					halo="halo/elven/nature-halo1.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-375"
					end="-300"
					halo="halo/elven/nature-halo2.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-300"
					end="-225"
					halo="halo/elven/nature-halo3.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-225"
					end="-150"
					halo="halo/elven/nature-halo4.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[frame]
					begin="-150"
					end="-75"
					halo="halo/elven/nature-halo5.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[if]
					hits="hit"
					slowed_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									slowed="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[slowed_sound_frame]
						duration="100"
						sound="slowed.wav"
					[/slowed_sound_frame]
				[/if]
				[frame]
					begin="-75"
					end="0"
					halo="halo/elven/nature-halo6.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
					sound="entangle.wav"
				[/frame]
				[frame]
					begin="-0"
					end="50"
					halo="halo/elven/nature-halo7.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="50"
					end="100"
					halo="halo/elven/nature-halo8.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/shaman.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="175"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/shaman-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-200"
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal1.png"
				[/frame]
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal2.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-1.png"
					image="units/elves-wood/shaman-heal3.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-2.png"
					image="units/elves-wood/shaman-heal4.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-3.png"
					image="units/elves-wood/shaman-heal5.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-4.png"
					image="units/elves-wood/shaman-heal6.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-5.png"
					image="units/elves-wood/shaman-heal7.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-6.png"
					image="units/elves-wood/shaman-heal8.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-7.png"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
				[frame]
					duration="30"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/druidstaff.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "entangle"
				name="entangle"
				number="2"
				range="ranged"
				type="impact"
				[specials]
					[slow]
#textdomain wesnoth
						description=_ "Slow:
This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
						id="slow"
						name=_ "slows"
					[/slow]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="7"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-20"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Unundir"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="20"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="6"
			y="7"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Ranger,Elvish Marksman"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="17"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Elvish Archer-25"
			image="units/elves-wood/archer.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Archer"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="30"
			max_moves="6"
			movement="6"
			movement_type="woodland"
			moves="6"
			name="Eowand"
			profile="portraits/elves/archer.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Archer"
			undead_variation="archer"
			underlying_id="25"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="20"
			y="19"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/archer-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/archer-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/archer-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/archer-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/archer-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/archer-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/archer-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-175"
					image="units/elves-wood/archer-sword.png"
				[/frame]
				[frame]
					begin="-175"
					end="-75"
					image="units/elves-wood/archer-sword-1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-75"
						end="75"
						image="units/elves-wood/archer-sword-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-75"
						end="75"
						image="units/elves-wood/archer-sword-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/else]
				[frame]
					begin="75"
					end="125"
					image="units/elves-wood/archer-sword-3.png"
				[/frame]
				[frame]
					begin="125"
					end="175"
					image="units/elves-wood/archer-sword-4.png"
				[/frame]
				[frame]
					begin="175"
					end="200"
					image="units/elves-wood/archer-sword.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/archer-sword.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-sword-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/archer-sword-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/archer-sword-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/archer-sword.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/archer-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/archer-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/archer-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/archer-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/archer.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/archer.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="5"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="5"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-27"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Rorfind"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="27"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="8"
			y="16"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-33"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Isel"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="11"
			y="16"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Elvish Fighter-36"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Nylarand"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="36"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="10"
			y="16"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="14"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Elvish Fighter-4"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Mad"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="4"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Rider"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="18"
			die_sound="horse-die.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Elvish Scout-5"
			image="units/elves-wood/scout.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Scout"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="30"
			max_moves="10"
			movement="9"
			movement_type="woodland"
			moves="10"
			name="Elvor"
			profile="portraits/elves/scout.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Scout"
			undead_variation="mounted"
			underlying_id="5"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-300"
						image="units/elves-wood/scout-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-300"
						image="units/elves-wood/scout-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-300"
					end="-50"
					image="units/elves-wood/scout-attack2.png"
				[/frame]
				[frame]
					begin="-50"
					end="50"
					image="units/elves-wood/scout-moving.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-175"
					image="units/elves-wood/scout.png"
					sound="horse-elf-canter.wav"
				[/frame]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/scout-moving.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/scout-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/scout-attack.png"
						sound="sword-1.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/elves-wood/scout-moving.png"
				[/frame]
				[frame]
					begin="200"
					end="250"
					image="units/elves-wood/scout.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/scout.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/scout-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/scout-defend.png"
						sound="horse-hit-1.ogg,horse-hit-2.ogg,horse-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/scout-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/scout.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-1.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-3.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-4.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-5.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-6.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-9.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-10.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-11.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-12.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-13.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-14.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-15.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-16.png"
				[/frame]
			[/idle_anim]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/elves-wood/scout-moving.png"
				[/frame]
			[/movement_anim]
			[portrait]
				image="portraits/elves/transparent/scout.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/scout.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="7"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="2"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Elvish Fighter-13"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Amáriorfin"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="13"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Druid,Elvish Sorceress"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="32"
			id="Elvish Shaman-14"
			image="units/elves-wood/shaman.png"
#textdomain wesnoth-units
			language_name=_ "female^Elvish Shaman"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="32"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Eowieng"
			profile="portraits/elves/shaman.png~RIGHT()"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Shaman"
			underlying_id="14"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="entangle"
				[/filter_attack]
				[missile_frame]
					begin="-200"
					end="50"
					image="projectiles/entangle.png"
					image_diagonal="projectiles/entangle.png"
					offset="1.0"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-375"
					halo="halo/elven/nature-halo1.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-375"
					end="-300"
					halo="halo/elven/nature-halo2.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-300"
					end="-225"
					halo="halo/elven/nature-halo3.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-225"
					end="-150"
					halo="halo/elven/nature-halo4.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[frame]
					begin="-150"
					end="-75"
					halo="halo/elven/nature-halo5.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[if]
					hits="hit"
					slowed_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									slowed="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[slowed_sound_frame]
						duration="100"
						sound="slowed.wav"
					[/slowed_sound_frame]
				[/if]
				[frame]
					begin="-75"
					end="0"
					halo="halo/elven/nature-halo6.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
					sound="entangle.wav"
				[/frame]
				[frame]
					begin="-0"
					end="50"
					halo="halo/elven/nature-halo7.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="50"
					end="100"
					halo="halo/elven/nature-halo8.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/shaman.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="175"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/shaman-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-200"
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal1.png"
				[/frame]
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal2.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-1.png"
					image="units/elves-wood/shaman-heal3.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-2.png"
					image="units/elves-wood/shaman-heal4.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-3.png"
					image="units/elves-wood/shaman-heal5.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-4.png"
					image="units/elves-wood/shaman-heal6.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-5.png"
					image="units/elves-wood/shaman-heal7.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-6.png"
					image="units/elves-wood/shaman-heal8.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-7.png"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
				[frame]
					duration="30"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/druidstaff.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "entangle"
				name="entangle"
				number="2"
				range="ranged"
				type="impact"
				[specials]
					[slow]
#textdomain wesnoth
						description=_ "Slow:
This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
						id="slow"
						name=_ "slows"
					[/slow]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Elvish Fighter-17"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Til"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Fighter"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Druid,Elvish Sorceress"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="32"
			id="Elvish Shaman-18"
			image="units/elves-wood/shaman.png"
#textdomain wesnoth-units
			language_name=_ "female^Elvish Shaman"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="32"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Ganiel"
			profile="portraits/elves/shaman.png~RIGHT()"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Shaman"
			underlying_id="18"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="entangle"
				[/filter_attack]
				[missile_frame]
					begin="-200"
					end="50"
					image="projectiles/entangle.png"
					image_diagonal="projectiles/entangle.png"
					offset="1.0"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-375"
					halo="halo/elven/nature-halo1.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-375"
					end="-300"
					halo="halo/elven/nature-halo2.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-300"
					end="-225"
					halo="halo/elven/nature-halo3.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-225"
					end="-150"
					halo="halo/elven/nature-halo4.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[frame]
					begin="-150"
					end="-75"
					halo="halo/elven/nature-halo5.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[if]
					hits="hit"
					slowed_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									slowed="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[slowed_sound_frame]
						duration="100"
						sound="slowed.wav"
					[/slowed_sound_frame]
				[/if]
				[frame]
					begin="-75"
					end="0"
					halo="halo/elven/nature-halo6.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
					sound="entangle.wav"
				[/frame]
				[frame]
					begin="-0"
					end="50"
					halo="halo/elven/nature-halo7.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="50"
					end="100"
					halo="halo/elven/nature-halo8.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/shaman.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="175"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/shaman-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-200"
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal1.png"
				[/frame]
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal2.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-1.png"
					image="units/elves-wood/shaman-heal3.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-2.png"
					image="units/elves-wood/shaman-heal4.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-3.png"
					image="units/elves-wood/shaman-heal5.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-4.png"
					image="units/elves-wood/shaman-heal6.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-5.png"
					image="units/elves-wood/shaman-heal7.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-6.png"
					image="units/elves-wood/shaman-heal8.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-7.png"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
				[frame]
					duration="30"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/druidstaff.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "entangle"
				name="entangle"
				number="2"
				range="ranged"
				type="impact"
				[specials]
					[slow]
#textdomain wesnoth
						description=_ "Slow:
This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
						id="slow"
						name=_ "slows"
					[/slow]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="7"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-20"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Unundir"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="20"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Ranger,Elvish Marksman"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="17"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Elvish Archer-25"
			image="units/elves-wood/archer.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Archer"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="30"
			max_moves="6"
			movement="6"
			movement_type="woodland"
			moves="6"
			name="Eowand"
			profile="portraits/elves/archer.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Archer"
			undead_variation="archer"
			underlying_id="25"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/archer-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/archer-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/archer-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/archer-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/archer-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/archer-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/archer-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-175"
					image="units/elves-wood/archer-sword.png"
				[/frame]
				[frame]
					begin="-175"
					end="-75"
					image="units/elves-wood/archer-sword-1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-75"
						end="75"
						image="units/elves-wood/archer-sword-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-75"
						end="75"
						image="units/elves-wood/archer-sword-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/else]
				[frame]
					begin="75"
					end="125"
					image="units/elves-wood/archer-sword-3.png"
				[/frame]
				[frame]
					begin="125"
					end="175"
					image="units/elves-wood/archer-sword-4.png"
				[/frame]
				[frame]
					begin="175"
					end="200"
					image="units/elves-wood/archer-sword.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/archer-sword.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-sword-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/archer-sword-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/archer-sword-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/archer-sword.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/archer-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/archer-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/archer-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/archer-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/archer.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/archer.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="5"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="5"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-27"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Rorfind"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="27"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-33"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Isel"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Elvish Fighter-36"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Nylarand"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="36"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/side]
	[side]
		action_bonus_count="11"
		aggression="0.5"
		allow_player="yes"
		caution="0.25"
		colour="2"
		controller="human"
		countdown_time="103957"
		current_player="KnightKunibert"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		gold="13"
		hidden="no"
		id="KnightKunibert2"
		income="0"
		leader_value="3"
		name="KnightKunibert"
		no_leader="yes"
		number_of_possible_recruits_to_force_recruit="3.1"
		objectives=_ "Victory:
@Defeat enemy leader(s)"
		objectives_changed="no"
		recruit="Goblin Spearman,Naga Fighter,Orcish Archer,Orcish Assassin,Orcish Grunt,Troll Whelp,Wolf Rider"
		recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		save_id="KnightKunibert2"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="2"
		start_gold="100"
		team_name="east"
#textdomain wesnoth-multiplayer
		user_team_name=_ "teamname^East"
		village_gold="2"
		village_value="1"
		villages_per_scout="8"
		[ai]
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			villages_per_scout="8"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[ai]
			villages_per_scout="8"
		[/ai]
		[village]
			x="5"
			y="8"
		[/village]
		[village]
			x="9"
			y="4"
		[/village]
		[village]
			x="10"
			y="10"
		[/village]
		[village]
			x="11"
			y="7"
		[/village]
		[village]
			x="17"
			y="12"
		[/village]
		[village]
			x="19"
			y="8"
		[/village]
		[village]
			x="19"
			y="17"
		[/village]
		[unit]
			alignment="chaotic"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="2"
			controller="human"
			cost="29"
			current_player="KnightKunibert"
			die_sound="troll-die-1.ogg,troll-die-2.ogg,troll-die-3.ogg"
			experience="16"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="49"
			id="KnightKunibert2"
			image="units/trolls/lobber.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Troll Rocklobber"
			leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
			level="2"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="49"
			max_moves="5"
			movement="5"
			movement_type="largefoot"
			moves="5"
			mp_countdown="yes"
			mp_countdown_action_bonus="20"
			mp_countdown_init_time="270"
			mp_countdown_reservoir_time="270"
			mp_countdown_turn_bonus="200"
			name="KnightKunibert"
			profile="portraits/trolls/troll.png"
			race="troll"
			random_traits="no"
			recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
			resting="yes"
			save_id="KnightKunibert2"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="2"
			team_name="east"
			terrain_liked="Hh, Ha, Mm, Ss"
			type="Troll Rocklobber"
			undead_variation="troll"
			underlying_id="2"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^East"
			village_gold="2"
			x="11"
			y="15"
			zoc="yes"
			[defense]
				castle="60"
				cave="60"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="80"
				cold="100"
				fire="100"
				impact="100"
				pierce="80"
			[/resistance]
			[abilities]
				[regenerate]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Regenerates:
The unit will heal itself 8 HP per turn. If it is poisoned, it will remove the poison instead of healing."
					female_name=_ "female^regenerates"
					id="regenerates"
					name=_ "regenerates"
					poison="cured"
					value="8"
				[/regenerate]
			[/abilities]
			[advancement]
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "fist"
				icon="attacks/fist-troll.png"
				name="fist"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="17"
				description=_ "sling"
				name="sling"
				number="1"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Orcish Grunt-9"
			image="units/orcs/grunt.png"
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Erark"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="9"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="5"
			y="8"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-12"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Bogdish"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="12"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="9"
			y="15"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="43"
			id="Orcish Grunt-19"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="43"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Vadash"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="19"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="19"
			y="17"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-21"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Ganak"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="21"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="8"
			y="15"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="13"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-22"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Pigor"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="22"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="7"
			y="9"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Naga Warrior"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="naga-die.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Naga Fighter-24"
			image="units/nagas/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Naga Fighter"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="34"
			max_moves="7"
			movement="7"
			movement_type="naga"
			moves="7"
			name="Milossalinos"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Naga Fighter"
			undead_variation="swimmer"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="12"
			y="16"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="130"
					image="units/nagas/fighter-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/nagas/fighter-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/nagas/fighter-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/nagas/fighter-melee-5.png"
				[/frame]
				[frame]
					duration="70"
					image="units/nagas/fighter-melee-6.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
						sound="naga-hit-1.ogg,naga-hit-2.ogg,naga-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="450"
					image="units/nagas/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="60"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Naga Warrior"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="naga-die.ogg"
			ellipse="misc/ellipse"
			experience="5"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="38"
			id="Naga Fighter-26"
			image="units/nagas/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Naga Fighter"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="38"
			max_moves="7"
			movement="7"
			movement_type="naga"
			moves="7"
			name="Amailekp"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Naga Fighter"
			undead_variation="swimmer"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="11"
			y="17"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="130"
					image="units/nagas/fighter-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/nagas/fighter-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/nagas/fighter-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/nagas/fighter-melee-5.png"
				[/frame]
				[frame]
					duration="70"
					image="units/nagas/fighter-melee-6.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
						sound="naga-hit-1.ogg,naga-hit-2.ogg,naga-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="450"
					image="units/nagas/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="60"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="41"
			id="Orcish Grunt-29"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="41"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Puragdish"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="7"
			y="16"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="41"
			id="Orcish Grunt-32"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="41"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Hanak"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="32"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="10"
			y="14"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="8"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="44"
			id="Orcish Grunt-34"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="44"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Hag"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="11"
			y="14"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Orcish Grunt-35"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Prunk"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="35"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="12"
			y="15"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="chaotic"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="2"
			controller="human"
			cost="29"
			current_player="KnightKunibert"
			die_sound="troll-die-1.ogg,troll-die-2.ogg,troll-die-3.ogg"
			experience="16"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="49"
			id="KnightKunibert2"
			image="units/trolls/lobber.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Troll Rocklobber"
			leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
			level="2"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="49"
			max_moves="5"
			movement="5"
			movement_type="largefoot"
			moves="5"
			mp_countdown="yes"
			mp_countdown_action_bonus="20"
			mp_countdown_init_time="270"
			mp_countdown_reservoir_time="270"
			mp_countdown_turn_bonus="200"
			name="KnightKunibert"
			profile="portraits/trolls/troll.png"
			race="troll"
			random_traits="no"
			recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
			resting="yes"
			save_id="KnightKunibert2"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="2"
			team_name="east"
			terrain_liked="Hh, Ha, Mm, Ss"
			type="Troll Rocklobber"
			undead_variation="troll"
			underlying_id="2"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^East"
			village_gold="2"
			zoc="yes"
			[defense]
				castle="60"
				cave="60"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="80"
				cold="100"
				fire="100"
				impact="100"
				pierce="80"
			[/resistance]
			[abilities]
				[regenerate]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Regenerates:
The unit will heal itself 8 HP per turn. If it is poisoned, it will remove the poison instead of healing."
					female_name=_ "female^regenerates"
					id="regenerates"
					name=_ "regenerates"
					poison="cured"
					value="8"
				[/regenerate]
			[/abilities]
			[advancement]
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "fist"
				icon="attacks/fist-troll.png"
				name="fist"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="17"
				description=_ "sling"
				name="sling"
				number="1"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Orcish Grunt-9"
			image="units/orcs/grunt.png"
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Erark"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="9"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-12"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Bogdish"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="12"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="43"
			id="Orcish Grunt-19"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="43"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Vadash"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="19"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-21"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Ganak"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="21"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="13"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-22"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Pigor"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="22"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Naga Warrior"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="naga-die.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Naga Fighter-24"
			image="units/nagas/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Naga Fighter"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="34"
			max_moves="7"
			movement="7"
			movement_type="naga"
			moves="7"
			name="Milossalinos"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Naga Fighter"
			undead_variation="swimmer"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="130"
					image="units/nagas/fighter-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/nagas/fighter-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/nagas/fighter-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/nagas/fighter-melee-5.png"
				[/frame]
				[frame]
					duration="70"
					image="units/nagas/fighter-melee-6.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
						sound="naga-hit-1.ogg,naga-hit-2.ogg,naga-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="450"
					image="units/nagas/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="60"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Naga Warrior"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="naga-die.ogg"
			ellipse="misc/ellipse"
			experience="5"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="38"
			id="Naga Fighter-26"
			image="units/nagas/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Naga Fighter"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="38"
			max_moves="7"
			movement="7"
			movement_type="naga"
			moves="7"
			name="Amailekp"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Naga Fighter"
			undead_variation="swimmer"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="130"
					image="units/nagas/fighter-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/nagas/fighter-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/nagas/fighter-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/nagas/fighter-melee-5.png"
				[/frame]
				[frame]
					duration="70"
					image="units/nagas/fighter-melee-6.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
						sound="naga-hit-1.ogg,naga-hit-2.ogg,naga-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="450"
					image="units/nagas/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="60"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="41"
			id="Orcish Grunt-29"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="41"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Puragdish"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="41"
			id="Orcish Grunt-32"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="41"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Hanak"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="32"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="8"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="44"
			id="Orcish Grunt-34"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="44"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Hag"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Orcish Grunt-35"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Prunk"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="35"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/side]
	[time]
		blue="0"
		green="-20"
		id="dawn"
		image="misc/schedule-dawn.png"
		lawful_bonus="0"
		name=_ "Dawn"
		red="-20"
	[/time]
	[time]
		blue="0"
		green="0"
		id="morning"
		image="misc/schedule-morning.png"
		lawful_bonus="25"
		name=_ "Morning"
		red="0"
	[/time]
	[time]
		blue="0"
		green="0"
		id="afternoon"
		image="misc/schedule-afternoon.png"
		lawful_bonus="25"
		name=_ "Afternoon"
		red="0"
	[/time]
	[time]
		blue="-20"
		green="-20"
		id="dusk"
		image="misc/schedule-dusk.png"
		lawful_bonus="0"
		name=_ "Dusk"
		red="0"
	[/time]
	[time]
		blue="-10"
		green="-40"
		id="first_watch"
		image="misc/schedule-firstwatch.png"
		lawful_bonus="-25"
		name=_ "First Watch"
		red="-40"
	[/time]
	[time]
		blue="-10"
		green="-40"
		id="second_watch"
		image="misc/schedule-secondwatch.png"
		lawful_bonus="-25"
		name=_ "Second Watch"
		red="-40"
	[/time]
	[variables]
		damage_inflicted="12"
		side_number="2"
		turn_number="12"
	[/variables]
	[player]
		can_recruit="Goblin Spearman,Naga Fighter,Orcish Archer,Orcish Assassin,Orcish Grunt,Troll Whelp,Wolf Rider"
		gold="-1"
		gold_add="no"
		name="KnightKunibert"
		save_id="KnightKunibert2"
		[unit]
			alignment="chaotic"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="2"
			controller="human"
			cost="29"
			current_player="KnightKunibert"
			die_sound="troll-die-1.ogg,troll-die-2.ogg,troll-die-3.ogg"
			experience="16"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="49"
			id="KnightKunibert2"
			image="units/trolls/lobber.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Troll Rocklobber"
			leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
			level="2"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="49"
			max_moves="5"
			movement="5"
			movement_type="largefoot"
			moves="5"
			mp_countdown="yes"
			mp_countdown_action_bonus="20"
			mp_countdown_init_time="270"
			mp_countdown_reservoir_time="270"
			mp_countdown_turn_bonus="200"
			name="KnightKunibert"
			profile="portraits/trolls/troll.png"
			race="troll"
			random_traits="no"
			recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
			resting="yes"
			save_id="KnightKunibert2"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="2"
			team_name="east"
			terrain_liked="Hh, Ha, Mm, Ss"
			type="Troll Rocklobber"
			undead_variation="troll"
			underlying_id="2"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^East"
			village_gold="2"
			zoc="yes"
			[defense]
				castle="60"
				cave="60"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="80"
				cold="100"
				fire="100"
				impact="100"
				pierce="80"
			[/resistance]
			[abilities]
				[regenerate]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Regenerates:
The unit will heal itself 8 HP per turn. If it is poisoned, it will remove the poison instead of healing."
					female_name=_ "female^regenerates"
					id="regenerates"
					name=_ "regenerates"
					poison="cured"
					value="8"
				[/regenerate]
			[/abilities]
			[advancement]
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "fist"
				icon="attacks/fist-troll.png"
				name="fist"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="17"
				description=_ "sling"
				name="sling"
				number="1"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Orcish Grunt-9"
			image="units/orcs/grunt.png"
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Erark"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="9"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-12"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Bogdish"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="12"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="43"
			id="Orcish Grunt-19"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="43"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Vadash"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="19"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-21"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Ganak"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="21"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="13"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Orcish Grunt-22"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="36"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Pigor"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="22"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Naga Warrior"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="naga-die.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Naga Fighter-24"
			image="units/nagas/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Naga Fighter"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="34"
			max_moves="7"
			movement="7"
			movement_type="naga"
			moves="7"
			name="Milossalinos"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Naga Fighter"
			undead_variation="swimmer"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="130"
					image="units/nagas/fighter-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/nagas/fighter-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/nagas/fighter-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/nagas/fighter-melee-5.png"
				[/frame]
				[frame]
					duration="70"
					image="units/nagas/fighter-melee-6.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
						sound="naga-hit-1.ogg,naga-hit-2.ogg,naga-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="450"
					image="units/nagas/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="60"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Naga Warrior"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="naga-die.ogg"
			ellipse="misc/ellipse"
			experience="5"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="38"
			id="Naga Fighter-26"
			image="units/nagas/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Naga Fighter"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="38"
			max_moves="7"
			movement="7"
			movement_type="naga"
			moves="7"
			name="Amailekp"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Naga Fighter"
			undead_variation="swimmer"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="130"
					image="units/nagas/fighter-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/nagas/fighter-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/nagas/fighter-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/nagas/fighter-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/nagas/fighter-melee-5.png"
				[/frame]
				[frame]
					duration="70"
					image="units/nagas/fighter-melee-6.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
						sound="naga-hit-1.ogg,naga-hit-2.ogg,naga-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/nagas/fighter-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/nagas/fighter-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/nagas/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="450"
					image="units/nagas/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="250"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="60"
					image="units/nagas/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="350"
					image="units/nagas/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/nagas/fighter-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="60"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="41"
			id="Orcish Grunt-29"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="41"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Puragdish"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="41"
			id="Orcish Grunt-32"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="41"
			max_moves="6"
			movement="5"
			movement_type="orcishfoot"
			moves="6"
			name="Hanak"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="32"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="9"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="8"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="44"
			id="Orcish Grunt-34"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="29"
			max_hitpoints="44"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Hag"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Orcish Warrior"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="12"
			die_sound="orc-die-1.ogg,orc-die-2.ogg,orc-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Orcish Grunt-35"
			image="units/orcs/grunt.png"
#textdomain wesnoth-units
			language_name=_ "Orcish Grunt"
			level="1"
			max_attacks="1"
			max_experience="24"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="orcishfoot"
			moves="5"
			name="Prunk"
			profile="portraits/orcs/warlord5.png"
			race="orc"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Orcish Grunt"
			underlying_id="35"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.15:100,0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75,0.2~0.0:75"
				start_time="-300"
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					duration="50"
					image="units/orcs/grunt.png"
				[/frame]
				[frame]
					duration="50"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="75"
						image="units/orcs/grunt-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/orcs/grunt-attack-3.png"
				[/frame]
				[frame]
					duration="20"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="30"
					image="units/orcs/grunt-attack-4.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt-attack-5.png"
				[/frame]
				[frame]
					duration="75"
					image="units/orcs/grunt.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="120"
					image="units/orcs/grunt-die-1.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-2.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-3.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-4.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-5.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-6.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-7.png"
				[/frame]
				[frame]
					duration="120"
					image="units/orcs/grunt-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/orcs/grunt-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
						sound="orc-hit-1.ogg,orc-hit-2.ogg,orc-hit-3.ogg,orc-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/orcs/grunt-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/orcs/grunt-defend-1.png"
				[/frame]
			[/defend]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/player]
	[player]
		can_recruit="Elvish Archer,Elvish Fighter,Elvish Scout,Elvish Shaman,Mage,Merman Hunter,Wose"
		gold="-1"
		gold_add="no"
		name="WackererWichtel"
		save_id="WackererWichtel1"
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="14"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Elvish Fighter-4"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Mad"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="4"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Rider"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="18"
			die_sound="horse-die.ogg"
			ellipse="misc/ellipse"
			experience="4"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Elvish Scout-5"
			image="units/elves-wood/scout.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Scout"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="30"
			max_moves="10"
			movement="9"
			movement_type="woodland"
			moves="10"
			name="Elvor"
			profile="portraits/elves/scout.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Scout"
			undead_variation="mounted"
			underlying_id="5"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-300"
						image="units/elves-wood/scout-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-300"
						image="units/elves-wood/scout-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-300"
					end="-50"
					image="units/elves-wood/scout-attack2.png"
				[/frame]
				[frame]
					begin="-50"
					end="50"
					image="units/elves-wood/scout-moving.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-175"
					image="units/elves-wood/scout.png"
					sound="horse-elf-canter.wav"
				[/frame]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/scout-moving.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/scout-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/scout-attack.png"
						sound="sword-1.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/elves-wood/scout-moving.png"
				[/frame]
				[frame]
					begin="200"
					end="250"
					image="units/elves-wood/scout.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/scout.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/scout-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/scout-defend.png"
						sound="horse-hit-1.ogg,horse-hit-2.ogg,horse-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/scout-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/scout.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-1.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-3.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-4.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-5.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-6.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/scout-idle-8.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-9.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-10.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-11.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-12.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-13.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-14.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-15.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/scout-idle-16.png"
				[/frame]
			[/idle_anim]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/elves-wood/scout-moving.png"
				[/frame]
			[/movement_anim]
			[portrait]
				image="portraits/elves/transparent/scout.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/scout.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="7"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="2"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Elvish Fighter-13"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Amáriorfin"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="13"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Druid,Elvish Sorceress"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="32"
			id="Elvish Shaman-14"
			image="units/elves-wood/shaman.png"
#textdomain wesnoth-units
			language_name=_ "female^Elvish Shaman"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="32"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Eowieng"
			profile="portraits/elves/shaman.png~RIGHT()"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Shaman"
			underlying_id="14"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="entangle"
				[/filter_attack]
				[missile_frame]
					begin="-200"
					end="50"
					image="projectiles/entangle.png"
					image_diagonal="projectiles/entangle.png"
					offset="1.0"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-375"
					halo="halo/elven/nature-halo1.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-375"
					end="-300"
					halo="halo/elven/nature-halo2.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-300"
					end="-225"
					halo="halo/elven/nature-halo3.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-225"
					end="-150"
					halo="halo/elven/nature-halo4.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[frame]
					begin="-150"
					end="-75"
					halo="halo/elven/nature-halo5.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[if]
					hits="hit"
					slowed_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									slowed="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[slowed_sound_frame]
						duration="100"
						sound="slowed.wav"
					[/slowed_sound_frame]
				[/if]
				[frame]
					begin="-75"
					end="0"
					halo="halo/elven/nature-halo6.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
					sound="entangle.wav"
				[/frame]
				[frame]
					begin="-0"
					end="50"
					halo="halo/elven/nature-halo7.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="50"
					end="100"
					halo="halo/elven/nature-halo8.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/shaman.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="175"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/shaman-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-200"
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal1.png"
				[/frame]
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal2.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-1.png"
					image="units/elves-wood/shaman-heal3.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-2.png"
					image="units/elves-wood/shaman-heal4.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-3.png"
					image="units/elves-wood/shaman-heal5.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-4.png"
					image="units/elves-wood/shaman-heal6.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-5.png"
					image="units/elves-wood/shaman-heal7.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-6.png"
					image="units/elves-wood/shaman-heal8.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-7.png"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
				[frame]
					duration="30"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/druidstaff.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "entangle"
				name="entangle"
				number="2"
				range="ranged"
				type="impact"
				[specials]
					[slow]
#textdomain wesnoth
						description=_ "Slow:
This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
						id="slow"
						name=_ "slows"
					[/slow]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Elvish Fighter-17"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Til"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Fighter"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Druid,Elvish Sorceress"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
			ellipse="misc/ellipse"
			experience="12"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="32"
			id="Elvish Shaman-18"
			image="units/elves-wood/shaman.png"
#textdomain wesnoth-units
			language_name=_ "female^Elvish Shaman"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="32"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Ganiel"
			profile="portraits/elves/shaman.png~RIGHT()"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Shaman"
			underlying_id="18"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="entangle"
				[/filter_attack]
				[missile_frame]
					begin="-200"
					end="50"
					image="projectiles/entangle.png"
					image_diagonal="projectiles/entangle.png"
					offset="1.0"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-375"
					halo="halo/elven/nature-halo1.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-375"
					end="-300"
					halo="halo/elven/nature-halo2.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-300"
					end="-225"
					halo="halo/elven/nature-halo3.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="-225"
					end="-150"
					halo="halo/elven/nature-halo4.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[frame]
					begin="-150"
					end="-75"
					halo="halo/elven/nature-halo5.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
				[/frame]
				[if]
					hits="hit"
					slowed_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									slowed="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[slowed_sound_frame]
						duration="100"
						sound="slowed.wav"
					[/slowed_sound_frame]
				[/if]
				[frame]
					begin="-75"
					end="0"
					halo="halo/elven/nature-halo6.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman-attack2.png"
					sound="entangle.wav"
				[/frame]
				[frame]
					begin="-0"
					end="50"
					halo="halo/elven/nature-halo7.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="50"
					end="100"
					halo="halo/elven/nature-halo8.png"
					halo_x="0"
					halo_y="-12"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/shaman.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/shaman-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="175"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/shaman-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/shaman-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/shaman.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-200"
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal1.png"
				[/frame]
				[frame]
					duration="55"
					image="units/elves-wood/shaman-heal2.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-1.png"
					image="units/elves-wood/shaman-heal3.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-2.png"
					image="units/elves-wood/shaman-heal4.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-3.png"
					image="units/elves-wood/shaman-heal5.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-4.png"
					image="units/elves-wood/shaman-heal6.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-5.png"
					image="units/elves-wood/shaman-heal7.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-6.png"
					image="units/elves-wood/shaman-heal8.png"
				[/frame]
				[frame]
					duration="55"
					halo="halo/elven/shaman-heal-halo-7.png"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
				[frame]
					duration="30"
					image="units/elves-wood/shaman-heal9.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/shaman.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/druidstaff.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "entangle"
				name="entangle"
				number="2"
				range="ranged"
				type="impact"
				[specials]
					[slow]
#textdomain wesnoth
						description=_ "Slow:
This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
						id="slow"
						name=_ "slows"
					[/slow]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="7"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-20"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Unundir"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="20"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Ranger,Elvish Marksman"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="17"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Elvish Archer-25"
			image="units/elves-wood/archer.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Archer"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="30"
			max_moves="6"
			movement="6"
			movement_type="woodland"
			moves="6"
			name="Eowand"
			profile="portraits/elves/archer.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Elvish Archer"
			undead_variation="archer"
			underlying_id="25"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/archer-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/archer-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/archer-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/archer-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/archer-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/archer-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/archer-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-175"
					image="units/elves-wood/archer-sword.png"
				[/frame]
				[frame]
					begin="-175"
					end="-75"
					image="units/elves-wood/archer-sword-1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-75"
						end="75"
						image="units/elves-wood/archer-sword-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-75"
						end="75"
						image="units/elves-wood/archer-sword-2.png"
						sound="sword-1.ogg"
					[/frame]
				[/else]
				[frame]
					begin="75"
					end="125"
					image="units/elves-wood/archer-sword-3.png"
				[/frame]
				[frame]
					begin="125"
					end="175"
					image="units/elves-wood/archer-sword-4.png"
				[/frame]
				[frame]
					begin="175"
					end="200"
					image="units/elves-wood/archer-sword.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/archer-sword.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-sword-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/archer-sword-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/archer-sword-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/archer-sword.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/archer-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/archer-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/archer-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/archer-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/archer-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/archer.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/archer.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="5"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="5"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-27"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="22"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Rorfind"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="27"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Elvish Fighter-33"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Isel"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^dextrous"
					id="dextrous"
					male_name=_ "dextrous"
					name=_ "dextrous"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="ranged"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Captain,Elvish Hero"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="39"
			id="Elvish Fighter-36"
			image="units/elves-wood/fighter.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Fighter"
			level="1"
			max_attacks="1"
			max_experience="28"
			max_hitpoints="39"
			max_moves="5"
			movement="5"
			movement_type="woodland"
			moves="5"
			name="Nylarand"
			profile="portraits/elves/fighter.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="1"
			type="Elvish Fighter"
			underlying_id="36"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[frame]
					begin="-445"
					end="-380"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-380"
						end="-305"
						image="units/elves-wood/fighter-bow-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-305"
					end="-230"
					image="units/elves-wood/fighter-bow-attack2.png"
				[/frame]
				[frame]
					begin="-230"
					end="-130"
					image="units/elves-wood/fighter-bow-attack3.png"
				[/frame]
				[frame]
					begin="-130"
					end="0"
					image="units/elves-wood/fighter-bow-attack4.png"
				[/frame]
				[frame]
					begin="0"
					end="65"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="sword"
				[/filter_attack]
				[frame]
					begin="-175"
					end="-100"
					image="units/elves-wood/fighter.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="sword-1.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/elves-wood/fighter-melee-1.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/elves-wood/fighter-melee-2.png"
				[/frame]
				[frame]
					begin="150"
					end="175"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/elves-wood/fighter-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/elves-wood/fighter-bow.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/elves-wood/fighter-idle-2.png"
				[/frame]
				[frame]
					duration="125"
					image="units/elves-wood/fighter-idle-3.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-4.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-5.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-6.png"
				[/frame]
				[frame]
					duration="175"
					image="units/elves-wood/fighter-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/elves-wood/fighter-idle-8.png"
				[/frame]
				[frame]
					duration="250"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="400"
					image="units/elves-wood/fighter-idle-10.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-9.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-11.png"
				[/frame]
				[frame]
					duration="150"
					image="units/elves-wood/fighter-idle-12.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/fighter.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="3"
				description=_ "bow"
				icon="attacks/bow-elven.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/player]
[/snapshot]
[replay_start]
	current_tod="0"
#textdomain wesnoth-multiplayer
	description=_ "Players must traverse all manner of terrain in pursuit of victory on this multi-fronted duel map."
	experience_modifier="70"
	hash="cy9,5.FpN3rBcL.L4e+O18wLdEdI4Tz0IvgfbwAuK9N2059<42Xr0yhIQSuhssS,4T<A9.6ab>JpBPvMvrcHSQVHi2E+1XTwfH7D.FR+I29N,oCK6dipd3xe.OJ>Piko"
	id="multiplayer_Silverhead_Crossing"
	map_data="border_size=1
usage=map

Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Wo          , Ww          , Ww          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Wo          , Ww          , Ww          , Ww          , Ww          , Uh          , Xu          , Xu          , Ww          , Hh          , Wo          , Ww          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Ww          , Gs^Fp       , Ww          , Xu          , Xu          , Gs^Fp       , Uu^Uf       , Uh          , Gs^Fp       , Mm          , Gg^Fet      , Ww          , Ww          , Ww          , Ww          , Ww          , Wo          , Ww          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Hh          , Gg          , Gg          , Gg          , Gg          , Uh          , Gg          , Gg          , Gg          , Ggf         , Gg          , Gg          , Gg          , Gs^Fp       , Hh          , Mm          , Gs^Fms      , Ww          , Ww          , Wo          , Wo          
Wo          , Wo          , Wo          , Wo          , Ww          , Wo          , Ww          , Mm          , Gs^Fms      , Gg^Ve       , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Wo          , Wwf         , Gg          , Gg          , Gg          , Rr          , Gg^Vc       , Gg          , Wwf         , Chw         , Hh          , Gs^Fp       , Ww          , Wo          
Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Gs^Fp       , Xu          , Wwf         , Xu          , Wwf         , Wwf         , Gg          , Wwf         , Wwf         , Wwf         , Chw         , Rr          , Rr          , Wwf         , Ww          , Wo          
Wo          , Wo          , Wo          , Ww          , Ww          , Gs^Fp       , Rd          , Chw         , Kh          , Ch          , Gg          , Gg          , Rd          , Rd^Uf       , Uh          , Xu          , Xu          , Rd^Uf       , Xu          , Wwf         , Wwf         , Gg          , Gg          , Hh          , Hh          , Wwf         , Ww          , Ww          , Xu          
Wo          , Wo          , Wo          , Wo          , Gg          , Ggf         , Hh          , Mm          , Wwf         , Chw         , Rd          , Uu^Vud      , Uu          , Ur          , Uu^Uf       , Ur          , Gs^Fp       , Xu          , Rd          , Gg          , Wwf         , Gg          , Gg          , Gg^Ve       , Gg^Fet      , Wwf         , Gs^Fp       , Ww          , Xu          
Wo          , Wo          , Ww          , Ww          , Ww          , Gg^Ve       , Wwf         , Gg^Fet      , Wwf         , Ggf         , Xu          , Uu          , Xu          , Uu^Uf       , Wwf         , Uh          , Xu          , Rd          , Gg          , Gg^Ve       , Kh          , Wwf         , Gg          , Gg          , Xu          , Wwf         , Wwf         , Xu          , Xu          
Wo          , Wo          , Ww          , Ww          , Gg          , Wwf         , Gg          , Wwf         , Xu          , Xu          , Gg          , Xu          , Gg          , Gg          , Ww          , Gg          , Gg          , Xu          , Gg          , Gg          , Ww          , Chw         , Ch          , Gg          , Xu          , Xu          , Uh          , Xu          , Xu          
Ww          , Ww          , Ww          , Gg          , Gg          , Gs^Fds      , Gg          , Rd          , Gg          , Gg          , Gg^Vc       , Gg          , Gs^Fms      , Ww          , Wo          , Ww          , Ww          , Gg          , Wwf         , Wwf         , Gg          , Ww          , Kh          , Gg          , Rd          , Gs^Fp       , Rd          , Xu          , Xu          
Ww          , Ww          , Gg          , Gg          , 1 Kh        , Gg          , Rd          , Rd          , Mm          , Gs^Fp       , Gg          , Gg          , Gg          , Ww          , Wo          , Wo          , Ww          , Wwf         , Kh          , Gs^Fms      , Ggf         , Gg          , Gg          , Gg          , Hh          , Rd          , Gg          , Xu          , Xu          
Ww          , Ww          , Ggf         , Gg          , Ch          , Ch          , Ggf         , Gg          , Gg          , Hh          , Gg          , Gs^Fp       , Ww          , Ww          , Ww          , Ww          , Wwf         , Ss^Vhs      , Kh          , Gg          , Hh          , Gs^Fds      , Gg          , Mm          , Gg          , Gg          , Ww          , Gg          , Gg          
Ww          , Gg          , Gg          , Rd          , Ch          , Ch          , Gg          , Gg          , Gg          , Gg          , Hh          , Ww          , Wwf         , Wwf         , Rr          , Rr          , Chw         , Chw         , Wwf         , Gg          , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gs^Fp       , Ww          , Ww          , Ww          
Ww          , Wwf         , Wwf         , Wwf         , Wwf         , Ch          , Kh          , Wwf         , Wwf         , Gg          , Wwf         , Wwf         , Chw         , Wwf         , Rr          , Wwf         , Wwf         , Wwf         , Gs^Fp       , Wwf         , Wwf         , Wwf         , 2 Kud       , Wwf         , Gg          , Wwf         , Ww          , Wo          , Wo          
Gs^Fds      , Gs^Fms      , Hh          , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Gg          , Wwf         , Kh          , Chw         , Wwf         , Rr          , Mm          , Wwf         , Ww          , Ww          , Gg          , Gg          , Hh          , Gg          , Gg          , Cud         , Cud         , Gg          , Gg          , Ww          , Xu          
Rd          , Rd          , Rd          , Gg          , Rd          , Gg          , Gs^Fp       , Mm          , Hh          , Gg          , Kh          , Ss^Vhs      , Ww          , Ww          , Wo          , Ww          , Ww          , Ww          , Gg          , Gg          , Gg          , Mm          , Gg          , Kud         , Cud         , Rd          , Gg          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Rd          , Rd          , Rd          , Rd          , Gg          , Gg          , Wwf         , Wwf         , Ww          , Ww          , Ww          , Ww          , Ww          , Gs^Fms      , Ggf         , Gg^Ve       , Gs^Fds      , Gg          , Cud         , Cud         , Gg          , Rd          , Xu          , Xu          , Xu          
Xu          , Xu          , Uu^Uf       , Uu^Uf       , Uh          , Gg          , Kud         , Gg          , Wwf         , Wwf         , Xu          , Ww          , Hh          , Gs^Fp       , Gs^Fp       , Hh          , Ww          , Gg          , Hh          , Hh          , Xu          , Rd          , Rd          , Gg          , Rd          , Rd          , Gg          , Uu^Uf       , Uu^Uf       
Xu          , Xu          , Cud         , Wwf         , Xu          , Xu          , Wwf         , Cud         , Kud         , Xu          , Xu          , Xu          , Xu          , Cud         , Xu          , Cud         , Xu          , Xu          , Xu          , Xu          , Gs^Fp       , Gg          , Rd          , Rd          , Gg          , Gg          , Gs^Fp       , Xu          , Xu          
Xu          , Xu          , Cud         , Wwf         , Wwf         , Ww          , Gg          , Cud         , Rd          , Rd          , Uu^Vu       , Ur          , Uu^Uf       , Wwf^Uf      , Xu          , Wwf^Uf      , Uu^Uf       , Ur          , Uu^Vu       , Rd          , Rd          , Gg          , Rd          , Gg          , Uu^Vud      , Uu^Uf       , Cud         , Xu          , Xu          
Wwf         , Wwf         , Wwf         , Wwf         , Gs^Fp       , Gg^Vc       , Rd          , Rd          , Xu          , Ur          , Ur          , Uh          , Uh          , Wwf         , Wwf         , Wwf         , Uh          , Uh          , Ur          , Ur          , Xu          , Rd          , Gg          , Gg          , Gg          , Ur          , Cud         , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Gg          , Ggf         , Mm          , Rd          , Rd          , Xu          , Rd          , Xu          , Wwf         , Wwf         , Ggf         , Wwf         , Wwf         , Xu          , Rd          , Xu          , Rd          , Rd          , Kud         , Gg          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Hh          , Gs^Fp       , Gg          , Gg          , Rd          , Gg          , Gg          , Wwf         , Mm          , Gs^Fp       , Hh          , Gg          , Wwf         , Gg          , Rd          , Gg          , Cud         , Cud         , Cud         , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Rd^Uf       , Gg          , Gs^Fms      , Gg^Ve       , Gg          , Wwf         , Gg          , Gg          , Gg          , Gs^Fms      , Gg          , Wwf         , Gg          , Gg^Ve       , Gs^Fds      , Rd          , Rd^Uf       , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Ur          , Xu          , Xu          , Ggf         , Gg          , Wwf         , Gg          , Hh          , Gg          , Mm          , Hh          , Wwf         , Wwf         , Ggf         , Xu          , Xu          , Ur          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Ur          , Xu          , Rr          , Xu          , Wwf         , Wwf         , Gs^Fp       , Gg          , Xu          , Gg          , Gg          , Gg          , Wwf         , Xu          , Xu          , Ur          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Rr          , Wwf         , Chw         , Wwf         , Rr          , Ur          , Xu          , Uu^Uf       , Xu          , Ur          , Gs^Fp       , Rr          , Wwf         , Wwf         , Chw         , Wwf         , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Wwf         , Xu          , Xu          , Rr          , Rr          , Wwf         , Uh          , Wwf         , Uu^Uf       , Wwf         , Rr          , Rr          , Rr          , Rr          , Wwf         , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Wo          , Wwf         , Ur          , Wwf         , Wo          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Uh          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          , Xu          
"
	mp_countdown="yes"
	mp_countdown_action_bonus="20"
	mp_countdown_init_time="270"
	mp_countdown_reservoir_time="270"
	mp_countdown_turn_bonus="200"
	mp_fog="yes"
	mp_shroud="no"
	mp_use_map_settings="yes"
	mp_village_gold="2"
	name=_ "2p - Silverhead Crossing"
	next_underlying_unit_id="0"
#textdomain wesnoth
	objectives=_ "Victory:
@Defeat enemy leader(s)"
	observer="yes"
	random_seed="2040054078"
	random_start_time="no"
	scenario="Ladder KnightKunibert"
	turns="-1"
	version="1.6"
	[time]
		green="-20"
		id="dawn"
		image="misc/schedule-dawn.png"
		name=_ "Dawn"
		red="-20"
		sound="ambient/morning.ogg"
	[/time]
	[time]
		id="morning"
		image="misc/schedule-morning.png"
		lawful_bonus="25"
		name=_ "Morning"
	[/time]
	[time]
		id="afternoon"
		image="misc/schedule-afternoon.png"
		lawful_bonus="25"
		name=_ "Afternoon"
	[/time]
	[time]
		blue="-20"
		green="-20"
		id="dusk"
		image="misc/schedule-dusk.png"
		name=_ "Dusk"
		sound="ambient/night.ogg"
	[/time]
	[time]
		blue="-10"
		green="-40"
		id="first_watch"
		image="misc/schedule-firstwatch.png"
		lawful_bonus="-25"
		name=_ "First Watch"
		red="-40"
	[/time]
	[time]
		blue="-10"
		green="-40"
		id="second_watch"
		image="misc/schedule-secondwatch.png"
		lawful_bonus="-25"
		name=_ "Second Watch"
		red="-40"
	[/time]
	[music]
		ms_before="12000"
		name="knolls.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="wanderer.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="battle.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="transience.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="the_king_is_dead.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="knalgan_theme.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="the_city_falls.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="nunc_dimittis.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="revelation.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="loyalists.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="breaking_the_chains.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="elvish-theme.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="legends_of_the_north.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="traveling_minstrels.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="underground.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="vengeful.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="frantic.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="the_dangerous_symphony.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="heroes_rite.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="suspense.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="the_deep_path.ogg"
	[/music]
	[music]
		append="yes"
		ms_before="12000"
		name="siege_of_laurelmor.ogg"
	[/music]
	[event]
		name="prestart"
		[music]
			ms_before="12000"
			name="knolls.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="wanderer.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="battle.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="transience.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="revelation.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="loyalists.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="the_king_is_dead.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="knalgan_theme.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="the_city_falls.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="nunc_dimittis.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="breaking_the_chains.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="elvish-theme.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="legends_of_the_north.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="traveling_minstrels.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="underground.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="vengeful.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="frantic.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="the_dangerous_symphony.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="heroes_rite.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="suspense.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="the_deep_path.ogg"
		[/music]
		[music]
			append="yes"
			ms_before="12000"
			name="siege_of_laurelmor.ogg"
		[/music]
	[/event]
	[era]
		id="era_default"
#textdomain wesnoth-multiplayer
		name=_ "Default"
		[multiplayer_side]
			flag_rgb="magenta"
			id="Random"
			image="units/random-dice.png"
			name=_ "Random"
			random_faction="yes"
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Loyalists"
			image="units/human-loyalists/lieutenant.png"
			leader="Lieutenant,Swordsman,Pikeman,Javelineer,Shock Trooper,Longbowman,White Mage,Red Mage"
			name=_ "Loyalists"
			random_leader="Lieutenant,Swordsman,Pikeman,Javelineer,Longbowman,Red Mage"
			recruit="Cavalryman,Horseman,Spearman,Fencer,Heavy Infantryman,Bowman,Mage,Merman Fighter"
			terrain_liked="Gg, Ww, Wo"
			type="Lieutenant"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,archer,mixed fighter,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Rebels"
			image="units/elves-wood/captain.png"
			leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,White Mage,Red Mage,Elder Wose"
			name=_ "Rebels"
			random_leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Red Mage"
			recruit="Elvish Fighter,Elvish Archer,Mage,Elvish Shaman,Elvish Scout,Wose,Merman Hunter"
			terrain_liked="Ff, Fa, Ss, Ww"
			type="Elvish Captain"
			[ai]
				recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Northerners"
			image="units/orcs/warrior.png"
			leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
			name=_ "Northerners"
			recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
			terrain_liked="Hh, Ha, Mm, Ss"
			type="Orcish Warrior"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Undead"
			image="units/undead-necromancers/dark-sorcerer.png"
			leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter,Necrophage"
			name=_ "Undead"
			random_leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter"
			recruit="Skeleton,Skeleton Archer,Walking Corpse,Ghost,Vampire Bat,Dark Adept,Ghoul"
			terrain_liked="Ss, Hh, Ha, Ww"
			type="Dark Sorcerer"
			[ai]
				recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Knalgan Alliance"
			image="units/dwarves/steelclad.png"
			leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
			name=_ "Knalgan Alliance"
			random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
			recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
			terrain_liked="Hh, Ha, Mm"
			type="Dwarvish Steelclad"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Drakes"
			image="units/drakes/flare.png"
			leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
			name=_ "Drakes"
			random_leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior"
			recruit="Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian Skirmisher,Saurian Augur"
			terrain_liked="Hh, Ha, Ds, Ss"
			type="Drake Flare"
			[ai]
				recruitment_pattern="fighter,fighter,archer,healer,scout,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[event]
			name="prestart"
			[store_unit]
				kill="yes"
				variable="leaders_to_make_quick"
				[filter]
					canrecruit="yes"
					[filter_wml]
						max_moves="4"
					[/filter_wml]
				[/filter]
			[/store_unit]
			[set_variable]
				name="i"
				value="0"
			[/set_variable]
			[while]
				[variable]
					less_than="$leaders_to_make_quick.length"
					name="i"
				[/variable]
				[do]
					[set_variables]
						mode="merge"
						name="leaders_to_make_quick[$i].modifications"
						[literal]
							[trait]
#textdomain wesnoth
								female_name=_ "female^quick"
								id="quick"
								male_name=_ "quick"
								[effect]
									apply_to="movement"
									increase="1"
								[/effect]
								[effect]
									apply_to="hitpoints"
									increase_total="-5%"
								[/effect]
							[/trait]
						[/literal]
					[/set_variables]
					[clear_variable]
						name="leaders_to_make_quick[$i].max_moves,leaders_to_make_quick[$i].moves,leaders_to_make_quick[$i].max_hitpoints,leaders_to_make_quick[$i].hitpoints"
					[/clear_variable]
					[unstore_unit]
						variable="leaders_to_make_quick[$i]"
					[/unstore_unit]
					[set_variable]
						add="1"
						name="i"
					[/set_variable]
				[/do]
			[/while]
			[clear_variable]
				name="i"
			[/clear_variable]
			[clear_variable]
				name="leaders_to_make_quick"
			[/clear_variable]
		[/event]
	[/era]
	[side]
		allow_changes="yes"
		allow_player="yes"
		canrecruit="yes"
		colour="1"
		controller="network"
		current_player="WackererWichtel"
		flag_rgb="magenta"
		fog="yes"
		gender="female"
		gold="100"
		id="WackererWichtel1"
		image="units/elves-wood/captain.png"
		income="0"
		leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,White Mage,Red Mage,Elder Wose"
		mp_countdown="yes"
		mp_countdown_action_bonus="20"
		mp_countdown_init_time="270"
		mp_countdown_reservoir_time="270"
		mp_countdown_turn_bonus="200"
		name="WackererWichtel"
		random_leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Red Mage"
		recruit="Elvish Fighter,Elvish Archer,Mage,Elvish Shaman,Elvish Scout,Wose,Merman Hunter"
		save_id="WackererWichtel1"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="1"
		team_name="west"
		terrain_liked="Ff, Fa, Ss, Ww"
		type="Red Mage"
		user_team_name="wesnoth-multiplayerteamname^West"
		village_gold="2"
		[ai]
			recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
			villages_per_scout="8"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[ai]
			villages_per_scout="8"
		[/ai]
	[/side]
	[side]
		allow_changes="yes"
		allow_player="yes"
		canrecruit="yes"
		colour="2"
		controller="human"
		current_player="KnightKunibert"
		flag_rgb="magenta"
		fog="yes"
		gender="male"
		gold="100"
		id="KnightKunibert2"
		image="units/orcs/warrior.png"
		income="0"
		leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
		mp_countdown="yes"
		mp_countdown_action_bonus="20"
		mp_countdown_init_time="270"
		mp_countdown_reservoir_time="270"
		mp_countdown_turn_bonus="200"
		name="KnightKunibert"
		recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
		save_id="KnightKunibert2"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="2"
		team_name="east"
		terrain_liked="Hh, Ha, Mm, Ss"
		type="Troll Rocklobber"
		user_team_name="wesnoth-multiplayerteamname^East"
		village_gold="2"
		[ai]
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			villages_per_scout="8"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[ai]
			villages_per_scout="8"
		[/ai]
	[/side]
[/replay_start]
[statistics]
	mid_scenario="yes"
	[scenario]
		scenario="2p - Silverhead Crossing"
		[team]
			[recruits]
				Naga Fighter="4"
				Orcish Assassin="2"
				Orcish Grunt="13"
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
			[/advances]
			[deaths]
				Naga Fighter="2"
				Orcish Assassin="2"
				Orcish Grunt="4"
			[/deaths]
			[killed]
				Elvish Archer="1"
				Elvish Fighter="1"
				Elvish Scout="1"
				Elvish Shaman="1"
				Red Mage="1"
			[/killed]
			[attacks]
				[sequence]
					s00="4"
					s0000="1"
					s0001="1"
					s0010="3"
					s01="3"
					s0100="3"
					s1="2"
					s10="3"
					s1011="2"
					s11="3"
					s1100="1"
					_num="40"
				[/sequence]
				[sequence]
					s00="1"
					s11="1"
					_num="50"
				[/sequence]
				[sequence]
					s00="3"
					s000="1"
					s01="2"
					s010="1"
					s10="3"
					s100="3"
					s11="3"
					s111="1"
					_num="60"
				[/sequence]
			[/attacks]
			[defends]
				[sequence]
					s="20"
					_num="0"
				[/sequence]
				[sequence]
					s0="1"
					s01="2"
					s10="1"
					_num="40"
				[/sequence]
				[sequence]
					s="1"
					s0="2"
					s1="5"
					_num="60"
				[/sequence]
			[/defends]
			recruit_cost="246"
			recall_cost="0"
			damage_inflicted="404"
			damage_taken="574"
			expected_damage_inflicted="417880"
			expected_damage_taken="540899"
			turn_damage_inflicted="105"
			turn_damage_taken="112"
			turn_expected_damage_inflicted="87748"
			turn_expected_damage_taken="82587"
			save_id="KnightKunibert2"
		[/team]
		[team]
			[recruits]
				Elvish Archer="2"
				Elvish Fighter="8"
				Elvish Scout="2"
				Elvish Shaman="3"
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
			[/advances]
			[deaths]
				Elvish Archer="1"
				Elvish Fighter="1"
				Elvish Scout="1"
				Elvish Shaman="1"
				Red Mage="1"
			[/deaths]
			[killed]
				Naga Fighter="2"
				Orcish Assassin="2"
				Orcish Grunt="4"
			[/killed]
			[attacks]
				[sequence]
					s0000="1"
					s01="1"
					s010="1"
					s1="1"
					s1000="1"
					_num="30"
				[/sequence]
				[sequence]
					s00="1"
					s000="1"
					s001="1"
					s01="1"
					s0100="1"
					s1="1"
					s10="1"
					s100="1"
					s1000="1"
					s11="2"
					_num="40"
				[/sequence]
				[sequence]
					s0110="1"
					_num="50"
				[/sequence]
				[sequence]
					s00="1"
					s0011="1"
					s01="2"
					s010="1"
					s011="1"
					s1="1"
					s10="1"
					s100="1"
					s1000="1"
					s101="1"
					s11="1"
					_num="60"
				[/sequence]
				[sequence]
					s1001="1"
					s111="1"
					s1110="1"
					_num="70"
				[/sequence]
			[/attacks]
			[defends]
				[sequence]
					s00="1"
					_num="30"
				[/sequence]
				[sequence]
					s00="3"
					s000="1"
					s0000="1"
					s0001="2"
					s001="1"
					s0010="2"
					s0011="2"
					s01="3"
					s0110="1"
					s0111="1"
					s1001="1"
					s11="2"
					s1100="1"
					s1110="1"
					_num="40"
				[/sequence]
				[sequence]
					s0="1"
					s111="2"
					_num="50"
				[/sequence]
				[sequence]
					s="2"
					s0="1"
					s0011="1"
					s01="2"
					s0100="1"
					s1="1"
					s10="1"
					s11="4"
					s110="1"
					s1101="2"
					s1110="1"
					s1111="2"
					_num="60"
				[/sequence]
			[/defends]
			recruit_cost="227"
			recall_cost="0"
			damage_inflicted="574"
			damage_taken="404"
			expected_damage_inflicted="540899"
			expected_damage_taken="417880"
			turn_damage_inflicted="158"
			turn_damage_taken="127"
			turn_expected_damage_inflicted="141601"
			turn_expected_damage_taken="103764"
			save_id="WackererWichtel1"
		[/team]
	[/scenario]
[/statistics]
