label="2p - Fallenstar Lake Turn 11_singalen"
version="1.6"
completion="victory"
campaign_type="multiplayer"
difficulty="NORMAL"
random_seed="191336950"
random_calls="0"
next_underlying_unit_id="34"
end_text_duration="0"
[variables]
[/variables]
[replay]
	[command]
		[start]
		[/start]
	[/command]
	[command]
		[recruit]
			value="3"
			x="2"
			y="8"
		[/recruit]
		[random]
			value="1820195060"
		[/random]
		[random]
			value="1652303486"
		[/random]
		[random]
			value="199926712"
		[/random]
		[random]
			value="1638022330"
		[/random]
		[random]
			value="549841445"
		[/random]
		[random]
			value="1601139171"
		[/random]
		[random]
			value="970137014"
		[/random]
		[random]
			value="1329961548"
		[/random]
		[random]
			value="254707501"
		[/random]
		[random]
			value="1590150439"
		[/random]
		[random]
			value="2035433632"
		[/random]
		[random]
			value="686365586"
		[/random]
		[random]
			value="2067843113"
		[/random]
		[random]
			value="79286934"
		[/random]
		[random]
			value="702609253"
			[results]
				checksum="80M696kdt17Q-aGPQ75eF4RIQSHu+GNvRCnIqFywJTCHmxqx1EwQVOxDmGODNOzCNSPAGPJsfzEDPJCs,8AqDwqDqPxMAuFRQxPzFwD4sc7wU,890qvi7pTKFPwx3xSB"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Acidflaw has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="3"
			x="2"
			y="6"
		[/recruit]
		[random]
			value="1194766521"
		[/random]
		[random]
			value="2069053799"
		[/random]
		[random]
			value="1163009707"
		[/random]
		[random]
			value="727065577"
		[/random]
		[random]
			value="810228666"
		[/random]
		[random]
			value="1819189807"
		[/random]
		[random]
			value="15451658"
		[/random]
		[random]
			value="1559247366"
		[/random]
		[random]
			value="1491901220"
		[/random]
		[random]
			value="1667755145"
		[/random]
		[random]
			value="1759174078"
		[/random]
		[random]
			value="982439902"
		[/random]
		[random]
			value="70112942"
		[/random]
		[random]
			value="1212829602"
		[/random]
		[random]
			value="1952576917"
			[results]
				checksum="80M696kdt17Q-aGPQ75eF4RIQSHu+GNvRCnIqFywJTCHmxqx1EwQVOxDmGODNOzCNSPAGPJsfzEDPJCs,8AqDwqDqPxMAuFRQxPzFwD4sc7wU,890qvi7pTKFPwx3xSB"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="singalen"
			message="hf"
			side="2"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="5"
			x="1"
			y="9"
		[/recruit]
		[random]
			value="2121142933"
		[/random]
		[random]
			value="903527631"
		[/random]
		[random]
			value="2000472108"
		[/random]
		[random]
			value="509029924"
		[/random]
		[random]
			value="2098294152"
		[/random]
		[random]
			value="1922042259"
		[/random]
		[random]
			value="1672039632"
		[/random]
		[random]
			value="677876081"
		[/random]
		[random]
			value="584787277"
		[/random]
		[random]
			value="1343745791"
		[/random]
		[random]
			value="693327740"
		[/random]
		[random]
			value="2144034644"
		[/random]
		[random]
			value="688163363"
		[/random]
		[random]
			value="213599237"
		[/random]
		[random]
			value="1755725074"
			[results]
				checksum="dfk10b5br.kQp.+wk<Ab-239eel1N5llg71o3Xl17<1,5g7Z-k6kZlaGnZ68p4>gn6n3e1iafnb5+9fo4>73a+>+.57mc,6d1edjnNmi-f,a8gbj.r.awWGe+,PQ3hpQ"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="2,3,4,5,6"
			y="7,7,7,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Diablotin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="thx, u2"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="5"
			x="40"
			y="8"
		[/recruit]
		[random]
			value="1214496290"
		[/random]
		[random]
			value="387390550"
		[/random]
		[random]
			value="1685505019"
		[/random]
		[random]
			value="276014939"
		[/random]
		[random]
			value="1505518025"
		[/random]
		[random]
			value="1864152388"
		[/random]
		[random]
			value="725204087"
		[/random]
		[random]
			value="295069616"
		[/random]
		[random]
			value="1639563523"
		[/random]
		[random]
			value="952113644"
		[/random]
		[random]
			value="1585281018"
		[/random]
		[random]
			value="77340352"
		[/random]
		[random]
			value="689040582"
		[/random]
		[random]
			value="1221347074"
		[/random]
		[random]
			value="1572608613"
			[results]
				checksum="wmNPCQ,<jCB,xNaeN9c8kBjp>f.33i3,bi2g6odf4d42johapi+j5>4.,j0+4d89dk>9,2l6z.fc-I>-,WJ2j2m>8oQ0birbp4<4OkUyc1oTJvFiKQ-515ck2,Ih5Kjg"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="41"
			y="9"
		[/recruit]
		[random]
			value="214345525"
		[/random]
		[random]
			value="753729780"
		[/random]
		[random]
			value="1535219991"
		[/random]
		[random]
			value="509415142"
		[/random]
		[random]
			value="245809656"
		[/random]
		[random]
			value="339849987"
		[/random]
		[random]
			value="2094696160"
		[/random]
		[random]
			value="323150008"
		[/random]
		[random]
			value="1028890570"
		[/random]
		[random]
			value="1168559586"
		[/random]
		[random]
			value="1895758621"
		[/random]
		[random]
			value="1368297501"
		[/random]
		[random]
			value="339536133"
			[results]
				checksum="Dem>c1k,fFB3IPKDDy,IIVsrrz9qrFsKPmsAOVOPtQsRHOMGLquuPuNAtBx6AEqpsGOKxE8KFoBPRQNzSIM0NsInAEUrD<pd7wU07l,LsmkMRAyTOtHFLqpFUIIzsxsc"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="40,39,38,37,36"
			y="7,8,8,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="2,3,4,5,6,7,8"
			y="6,6,5,5,4,4,4"
		[/move]
	[/command]
	[command]
		[move]
			x="1,1,1,1,2,2,2,3"
			y="9,10,11,12,12,13,14,15"
		[/move]
	[/command]
	[command]
		[move]
			x="2,2,2,2,2,2,2,2,2,2"
			y="8,9,10,11,12,13,14,15,16,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SM_Ile has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="6,7,8,9,10"
			y="8,8,7,7,7"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="11"
			y="7"
		[/recruit]
		[random]
			value="396668969"
		[/random]
		[random]
			value="1174765477"
		[/random]
		[random]
			value="75852640"
		[/random]
		[random]
			value="951778578"
		[/random]
		[random]
			value="1795242532"
		[/random]
		[random]
			value="711819609"
		[/random]
		[random]
			value="240362315"
		[/random]
		[random]
			value="165157015"
		[/random]
		[random]
			value="781963126"
		[/random]
		[random]
			value="1815805437"
		[/random]
		[random]
			value="1364424241"
		[/random]
		[random]
			value="1511337791"
		[/random]
		[random]
			value="96316911"
		[/random]
		[random]
			value="747130154"
		[/random]
		[random]
			value="995369570"
			[results]
				checksum="4zf1OSw,C7F>rbJjCs8AZ92.m<LzFBEHnuR73QRpoMa2r4.k-cpOaw87,.Y8Z.5ndaB-kwWvSlbAfbufC3iaj7hobd->Zhetk<>2fa5>ai01-b1+6Z+40CN5c8b.>X,4"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="11"
			y="8"
		[/recruit]
		[random]
			value="307728165"
		[/random]
		[random]
			value="1588126432"
		[/random]
		[random]
			value="1811418752"
		[/random]
		[random]
			value="307702434"
		[/random]
		[random]
			value="1965169086"
		[/random]
		[random]
			value="60604074"
		[/random]
		[random]
			value="1482467911"
		[/random]
		[random]
			value="2041021727"
		[/random]
		[random]
			value="1012382652"
		[/random]
		[random]
			value="1130226795"
		[/random]
		[random]
			value="605357688"
		[/random]
		[random]
			value="1252744967"
		[/random]
		[random]
			value="1295383810"
		[/random]
		[random]
			value="1387320815"
		[/random]
		[random]
			value="921066757"
			[results]
				checksum="3Cf1OSw,C7F>rbJjDs8AZ92.m<KzFBEHnuR73QRpoMa2r4.k-cpOaw87,.Y8Z.5ndaB-kwWvSlbAfbufC3iaj7hobd->Zhesk<>2fa5>ai01-b1+6Z+40CN5c8b.>X,4"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="10,10"
			y="7,8"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="alexis has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="36,35,34,33,32"
			y="8,8,8,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Argos has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="41,41,41,41,41,40,40,39"
			y="9,10,11,12,13,13,14,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="40,39,38,37,36,35,35,34"
			y="8,8,7,7,6,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="0"
			x="31"
			y="7"
		[/recruit]
		[random]
			value="1813971046"
		[/random]
		[random]
			value="1441538931"
		[/random]
		[random]
			value="1495003093"
		[/random]
		[random]
			value="795060623"
		[/random]
		[random]
			value="1094561432"
		[/random]
		[random]
			value="1495469783"
		[/random]
		[random]
			value="1657871167"
		[/random]
		[random]
			value="91599342"
		[/random]
		[random]
			value="1917275759"
		[/random]
		[random]
			value="216630063"
		[/random]
		[random]
			value="1332480433"
		[/random]
		[random]
			value="621315002"
		[/random]
		[random]
			value="2146709746"
		[/random]
		[random]
			value="1616993603"
		[/random]
		[random]
			value="1414917581"
			[results]
				checksum="xNa6Bryn.D--c-i+05ERoaOL-EyQovClJF7qE383X-fb-Zy1ji46+2f+9l+5<foc<nn6f23854.p5418om4H8bFWB0pjc+cZng<m8e6X68+vn>t55bKrqZdmOCaJmIaF"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="3"
			x="31"
			y="8"
		[/recruit]
		[random]
			value="157597318"
		[/random]
		[random]
			value="812569168"
		[/random]
		[random]
			value="2067732198"
		[/random]
		[random]
			value="149098919"
		[/random]
		[random]
			value="1598399480"
		[/random]
		[random]
			value="1336533695"
		[/random]
		[random]
			value="456615159"
		[/random]
		[random]
			value="814973019"
		[/random]
		[random]
			value="670208681"
		[/random]
		[random]
			value="123102557"
		[/random]
		[random]
			value="109028302"
		[/random]
		[random]
			value="17728126"
		[/random]
		[random]
			value="918163180"
			[results]
				checksum="wIq0h4Aje6ZNhfnNl+7b,Ha4jCJxd>Z4D>emIBh6hCW2BmtJ8j1v.9xmODNURxriEsBIuurvENcQBQBPqyPrRxP5tBQME,Ezpfu49w6JQVkN94JBwVAIsdMAIZHHpExA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="topace has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="_Chriss_ has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="8,9,10,11,12,13,14,15,16"
			y="4,5,5,6,6,7,7,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,12,13,14,15"
			y="7,6,5,5,4,5"
		[/move]
	[/command]
	[command]
		[move]
			x="11,12,13,13,13,13,14"
			y="8,8,9,10,11,12,12"
		[/move]
	[/command]
	[command]
		[move]
			x="3,4,5,6,7,8,9,10"
			y="15,15,16,16,17,16,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Budzin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="2,3,3,4,4,5"
			y="17,18,19,19,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MatchoPT has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,10,10,11"
			y="8,9,10,11"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,12"
			y="11,12,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="5"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="2116565130"
		[/random]
		[random]
			value="230689606"
		[/random]
		[random]
			value="68049693"
		[/random]
		[random]
			value="2146709676"
		[/random]
		[random]
			value="2108219557"
		[/random]
		[random]
			value="59745177"
		[/random]
		[random]
			value="727978066"
		[/random]
		[random]
			value="524638679"
		[/random]
		[random]
			value="253749355"
		[/random]
		[random]
			value="646597970"
		[/random]
		[random]
			value="806592941"
		[/random]
		[random]
			value="578131272"
		[/random]
		[random]
			value="937846492"
		[/random]
		[random]
			value="55644929"
		[/random]
		[random]
			value="992153001"
			[results]
				checksum="afk10b5br.kQp.+wk<Ab-239eel1N5llg71o3Xl17<1,5g7Z-k6kZlaGnZ68p4>gn6n3e1iafnb5+9fn4>73a+>+.57mc,6d1edjnNmi-f,a8gbj+B.awWJe+,PQ3hpQ"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="LunaLoony has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,27,27"
			y="7,7,7,6,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,27,26"
			y="8,7,7,6,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="0"
			x="31"
			y="8"
		[/recruit]
		[random]
			value="1211572995"
		[/random]
		[random]
			value="752782405"
		[/random]
		[random]
			value="1985656473"
		[/random]
		[random]
			value="1664688283"
		[/random]
		[random]
			value="661490204"
		[/random]
		[random]
			value="2022287019"
		[/random]
		[random]
			value="512987064"
		[/random]
		[random]
			value="512683500"
		[/random]
		[random]
			value="421405014"
		[/random]
		[random]
			value="870042772"
		[/random]
		[random]
			value="425708478"
		[/random]
		[random]
			value="1747234108"
		[/random]
		[random]
			value="159334942"
		[/random]
		[random]
			value="1353915851"
		[/random]
		[random]
			value="701640927"
			[results]
				checksum="LhGI28qHcsJn9Niqer4mpRo6wD4zsHnKP1Hy+wP.,jg1d-5cL>71745hhbgk5n1,oc<nn6f23854.p5418om4H8bFWB0pjc+cZng<m8e6X68+vn>t55bKrqZdmOCaJmI"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="6"
			x="31"
			y="7"
		[/recruit]
		[random]
			value="1592652392"
		[/random]
		[random]
			value="1047941468"
		[/random]
		[random]
			value="599439039"
		[/random]
		[random]
			value="1058186282"
		[/random]
		[random]
			value="1788023887"
		[/random]
		[random]
			value="1677440018"
		[/random]
		[random]
			value="461765713"
		[/random]
		[random]
			value="1382439042"
		[/random]
		[random]
			value="1543463404"
		[/random]
		[random]
			value="1673338708"
		[/random]
		[random]
			value="2135221447"
		[/random]
		[random]
			value="1381636229"
		[/random]
		[random]
			value="1190543344"
			[results]
				checksum="RqMsBKzD0FKjsFwUULNJZmGIxrMqRUrwAqFDQBsGIPzPLBOztLbGuuQUIGIP7KIRwurIsmHBB+FVoqJyy6J8xkkBsfg-8bR7eEHFHBVJRlsCL4wQFtHLK,fBFKhGav7k"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,31,31,31,31"
			y="7,8,9,10,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="2"
			x="30"
			y="12"
		[/recruit]
		[random]
			value="1213849030"
		[/random]
		[random]
			value="1296774877"
		[/random]
		[random]
			value="850235909"
		[/random]
		[random]
			value="256908726"
		[/random]
		[random]
			value="1946002880"
		[/random]
		[random]
			value="2106675509"
		[/random]
		[random]
			value="1960439134"
		[/random]
		[random]
			value="960430736"
		[/random]
		[random]
			value="1637036475"
		[/random]
		[random]
			value="239045018"
		[/random]
		[random]
			value="400567070"
		[/random]
		[random]
			value="767147902"
		[/random]
		[random]
			value="824469492"
			[results]
				checksum="TuuzMJvu3JOmTCCoKGpBJPA6SCMFtLEzKIxOCmtqSOKJLCFwmIsr1QENmxPFHFw.RFKFnqypNLqM8mwoForIhF8xkkBsH9ih>N4ftxqADyQNdDsofqQwNFrCg8vPGzPi"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MrTwistar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31"
			y="11,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="34,33,32,31,30,29,29,28,27"
			y="4,5,5,6,6,7,8,8,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="39,39,39,39,39,38,38,37"
			y="15,16,17,18,19,19,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Da_BIG_BOB has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="5,6,7,8,9,10,11,12"
			y="21,21,22,22,22,21,21,20"
		[/move]
	[/command]
	[command]
		[move]
			x="16,17"
			y="8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Konrad has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,17"
			y="8,7"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17"
			y="7,6"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17"
			y="6,5"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17"
			y="5,4"
		[/move]
	[/command]
	[command]
		[move]
			x="17,18"
			y="4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="qwerty has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,19"
			y="3,3"
		[/move]
	[/command]
	[command]
		[move]
			x="19,20"
			y="3,2"
		[/move]
	[/command]
	[command]
		[move]
			x="20,21"
			y="2,2"
		[/move]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="singalen"
			message="Wow, this matchup again."
			side="2"
		[/speak]
	[/command]
	[command]
		[move]
			x="15,16,17,18,19,20"
			y="5,4,4,3,3,2"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shadow_Poga has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Marckraft has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,14,14,15,15,16,16,16"
			y="12,11,10,10,9,8,7,6"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,12,13,13,14,14,15"
			y="11,10,9,9,8,7,6,6"
		[/move]
	[/command]
	[command]
		[recruit]
			value="0"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="1111619662"
		[/random]
		[random]
			value="950985856"
		[/random]
		[random]
			value="260982709"
		[/random]
		[random]
			value="2041837412"
		[/random]
		[random]
			value="65468912"
		[/random]
		[random]
			value="1158069728"
		[/random]
		[random]
			value="1160936268"
		[/random]
		[random]
			value="1750987290"
		[/random]
		[random]
			value="240035112"
		[/random]
		[random]
			value="2035654833"
		[/random]
		[random]
			value="1048424327"
		[/random]
		[random]
			value="1116482390"
		[/random]
		[random]
			value="771388271"
		[/random]
		[random]
			value="1175235284"
		[/random]
		[random]
			value="455632865"
			[results]
				checksum=">UABEPGKRFs+RPP0VDMFU5szDKhwNqBscwwqoNtRxBzMHwQmPyPvpPAuOCIG6zNHsCQFqzuGzwKqqyuyKqqN5RBJTuEm3frBwnBwBICTrpKGHCIsunwteCIWceMGO<Yo"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="12,13,13,14,14,15"
			y="12,13,14,14,15,16"
		[/move]
	[/command]
	[command]
		[move]
			x="10,10,10,11,12,13,13,14"
			y="15,14,13,13,12,12,11,10"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="CasparBolt has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,26,25"
			y="9,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="hubie has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Skurzmkgan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="why ?"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,26,26"
			y="6,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="37,36,35,34,33,32,31,30"
			y="21,20,20,20,20,20,21,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dylan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28"
			y="7,7,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,28"
			y="8,7,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,25,26,26,27,27,28"
			y="8,9,9,10,11,12,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Rigor has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,29,29,29,28,27"
			y="12,13,14,15,15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31"
			y="12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="0"
			x="30"
			y="12"
		[/recruit]
		[random]
			value="1519252763"
		[/random]
		[random]
			value="1390460773"
		[/random]
		[random]
			value="366253865"
		[/random]
		[random]
			value="1865278008"
		[/random]
		[random]
			value="1314003120"
		[/random]
		[random]
			value="2042027884"
		[/random]
		[random]
			value="143336459"
		[/random]
		[random]
			value="53345520"
		[/random]
		[random]
			value="444461650"
		[/random]
		[random]
			value="1577114566"
		[/random]
		[random]
			value="1569435544"
		[/random]
		[random]
			value="1714308143"
		[/random]
		[random]
			value="1966136523"
		[/random]
		[random]
			value="1087829724"
		[/random]
		[random]
			value="726353478"
			[results]
				checksum="LhGI28qHcsJn9Niqer4ntRo6wD4zsHoKP1Hy+wP.,jg1d-5cL>71745hhbgk5n1,oc<nn6f23854.o1418om4H8bFWB0pjc+cZng<m8e6X68+vn>t55bKrqZdmOCaJmI"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jura has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="youngzoe has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31,31,31,32"
			y="11,10,9,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16,17"
			y="20,20,20,20,19,19"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Miki has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,17"
			y="19,18"
		[/move]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="singalen"
			message="I remember we played some time ago, with the same races, but opposite sides."
			side="2"
		[/speak]
	[/command]
	[command]
		[move]
			x="21,22"
			y="2,1"
		[/move]
	[/command]
	[command]
		[move]
			x="22,21"
			y="1,1"
		[/move]
	[/command]
	[command]
		[move]
			x="15,15,16,17,18,19,20"
			y="6,5,4,4,3,3,3"
		[/move]
	[/command]
	[command]
		[move]
			x="16,17,17,17,18,19"
			y="6,6,5,4,3,3"
		[/move]
	[/command]
	[command]
		[move]
			x="11,12,13,14,14,15"
			y="11,10,10,9,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="14,15,16,16,17,18,19,20"
			y="10,10,9,8,8,7,7,6"
		[/move]
	[/command]
	[command]
		[move]
			x="15,14,14,13,13,12"
			y="16,15,14,14,13,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="1"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="609998889"
		[/random]
		[random]
			value="611459816"
		[/random]
		[random]
			value="1421192840"
		[/random]
		[random]
			value="917004120"
		[/random]
		[random]
			value="1482037905"
		[/random]
		[random]
			value="1465101174"
		[/random]
		[random]
			value="2114324240"
		[/random]
		[random]
			value="259936689"
		[/random]
		[random]
			value="355931724"
		[/random]
		[random]
			value="240901118"
		[/random]
		[random]
			value="948224864"
		[/random]
		[random]
			value="1610676100"
		[/random]
		[random]
			value="2141934701"
		[/random]
		[random]
			value="718190103"
		[/random]
		[random]
			value="1029606330"
			[results]
				checksum="KFLvyin74-,ApeaEvE02ik,1f-H<ltHpHl.4.Zv+KOuxJJEBpQwGOLzIDBBrtvLGpNIMjJxOsDGJKEAIFmsFKnyPOyou3tJHxVzEnyVqOuyLwrBF>8AJxGsqutBis5-V"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Smozes has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="kahotep has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="altonator has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Altimar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="ahh ok :-)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Hordack has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,25,24,23"
			y="8,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lmartzin55555 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ruffio has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="OlaV has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Xardas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,29,28,28,27,27,26"
			y="12,12,11,10,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="23,24"
			y="7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,27,27,27,27"
			y="16,15,14,13,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,29,30,31,31,32"
			y="12,13,13,14,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shai-tan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="3"
			x="31"
			y="7"
		[/recruit]
		[random]
			value="1740607920"
		[/random]
		[random]
			value="210943916"
		[/random]
		[random]
			value="132533832"
		[/random]
		[random]
			value="1735164259"
		[/random]
		[random]
			value="2059581536"
		[/random]
		[random]
			value="509850462"
		[/random]
		[random]
			value="1472722161"
		[/random]
		[random]
			value="2025517705"
		[/random]
		[random]
			value="1381168406"
		[/random]
		[random]
			value="1293408134"
		[/random]
		[random]
			value="592965549"
		[/random]
		[random]
			value="1036484780"
		[/random]
		[random]
			value="1994622806"
			[results]
				checksum="wIq0h4Aje6ZNhfnNl+7b,Ha4jCJxd>Z4D>emIBh6hCW2BmtJ8j1v.9xmODNURxriEsBIuurvENcQBQBPqyPrRxP5tBQME,Ezpfu49w6JQVkN94JBwVAIsdMAIZHHpExA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,27"
			y="7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,31,30,29,28"
			y="7,8,7,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,30,29,29,28,28,27"
			y="20,19,18,18,17,16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="w1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="rouy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="15,16,17,18,19,19"
			y="8,7,7,6,6,5"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,12,13,14,15"
			y="11,10,9,9,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Jordie has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="0"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="426656869"
		[/random]
		[random]
			value="1358534912"
		[/random]
		[random]
			value="352359113"
		[/random]
		[random]
			value="1965216233"
		[/random]
		[random]
			value="1066523078"
		[/random]
		[random]
			value="293346526"
		[/random]
		[random]
			value="994176517"
		[/random]
		[random]
			value="2009269685"
		[/random]
		[random]
			value="885280995"
		[/random]
		[random]
			value="1717704393"
		[/random]
		[random]
			value="1181849238"
		[/random]
		[random]
			value="31517084"
		[/random]
		[random]
			value="2007351210"
		[/random]
		[random]
			value="1156428023"
		[/random]
		[random]
			value="748151863"
			[results]
				checksum=">UABtPGKRFs+RPQ0VDMFU5szDKhwNqBscwwqoNtRxBzMHwQmPyPvpPAuOCIG6zNHsCQFqzuGzwKqqyuyKqqQ5RBJTuEm3frBwnBwBICTrpKGHCIsunwteCIWcjMGO<Yo"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Grzegt has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="5"
			x="11"
			y="12"
		[/recruit]
		[random]
			value="181174649"
		[/random]
		[random]
			value="944910675"
		[/random]
		[random]
			value="1535618291"
		[/random]
		[random]
			value="973459611"
		[/random]
		[random]
			value="1249521146"
		[/random]
		[random]
			value="595625321"
		[/random]
		[random]
			value="1123863491"
		[/random]
		[random]
			value="1676384214"
		[/random]
		[random]
			value="1667452019"
		[/random]
		[random]
			value="1455381113"
		[/random]
		[random]
			value="123362437"
		[/random]
		[random]
			value="711090648"
		[/random]
		[random]
			value="1080598235"
		[/random]
		[random]
			value="1144481177"
		[/random]
		[random]
			value="1113264189"
			[results]
				checksum="afk10b5br.kQp.+wk<Ab-239eel1N5llg71o3Xl17<1,5g7Z-k6kZlaGnZ68p4>gn6n3e1iafnb5+9fn4>73a+>+.57mc,6d1edjnNmi-f,a8gbj+B.awWJe+,PQ3hpQ"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="OlaV has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="puslas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kalcik has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16,17"
			y="12,12,11,11,10,10"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17,18"
			y="18,19,19"
		[/move]
	[/command]
	[command]
		[move]
			x="18,19,20,21"
			y="19,20,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="urgel88 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="peter has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jules has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="PsychoticKittens has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,29,30,31,32"
			y="7,7,7,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Xaliver has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,26"
			y="15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,26,26,26,27,27,27"
			y="8,9,10,11,12,13,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,31,30,29,28,27,26,25"
			y="15,15,14,15,14,15,14,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ranku has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,27,26"
			y="11,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25"
			y="7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,26,27,27,28"
			y="7,6,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="leocrotta has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,28,29"
			y="5,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,29"
			y="5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,27,27"
			y="8,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,28"
			y="7,7,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="2"
			x="31"
			y="7"
		[/recruit]
		[random]
			value="1726318510"
		[/random]
		[random]
			value="622264556"
		[/random]
		[random]
			value="1166233194"
		[/random]
		[random]
			value="1321999060"
		[/random]
		[random]
			value="1461103159"
		[/random]
		[random]
			value="794798176"
		[/random]
		[random]
			value="1997359261"
		[/random]
		[random]
			value="276670198"
		[/random]
		[random]
			value="7671390"
		[/random]
		[random]
			value="1958644329"
		[/random]
		[random]
			value="1361968102"
		[/random]
		[random]
			value="1612773777"
		[/random]
		[random]
			value="1278968106"
			[results]
				checksum="TuuzMJvu3JOmTCCoKGpBJPA6SCMFtLEzKIxOCmtqSOKJLCFwmIsr1QENmxPFHFw.RFKFnqypNLqM8mwoForIhF8xkkBsH9ih>N4ftxqADyQNdDsofqQwNFrCg8vPGzPi"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Benn has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="31"
			y="8"
		[/recruit]
		[random]
			value="131613211"
		[/random]
		[random]
			value="1566246289"
		[/random]
		[random]
			value="959436413"
		[/random]
		[random]
			value="64811666"
		[/random]
		[random]
			value="282003627"
		[/random]
		[random]
			value="890746942"
		[/random]
		[random]
			value="480888527"
		[/random]
		[random]
			value="886591413"
		[/random]
		[random]
			value="1448807592"
		[/random]
		[random]
			value="59723389"
		[/random]
		[random]
			value="1508855969"
		[/random]
		[random]
			value="467557139"
		[/random]
		[random]
			value="1381722449"
			[results]
				checksum="fEAwEAF+1Gub.aUZJ5kiOGDqZxM8i-LoLYEs-E3jSJv0zT>8cpf6b>5Im2-i0051mfOa-a-d4,d8b>dr3-aeWym.7BZSugG6.eC5RE539gmeoJZ4jM-lYWmgBNCho0u4"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24"
			y="15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,26,26,25"
			y="15,16,17,18"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="21,22,23,24,25,26,27,28,29,30"
			y="21,21,21,20,21,20,21,20,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lylian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,12,13,14,15,16,17"
			y="11,10,10,9,9,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="19,20,21,22,23,24"
			y="3,3,4,3,3,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="patientfury has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,25"
			y="3,4"
		[/move]
	[/command]
	[command]
		[move]
			x="25,26"
			y="4,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="26"
				y="4"
			[/source]
			[destination]
				x="27"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1653985390"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1037960365"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1884870142"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="darael has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="20,21,22,23,24,25,26,27"
			y="6,6,5,5,5,5,4,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="4"
			[/source]
			[destination]
				x="27"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1687221845"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1829444956"
			[results]
				chance="60"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1224988418"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1074052658"
			[results]
				chance="60"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1650993054"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="673425679"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="geg_Ma3gau has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="21,22,23,24,24,24,25,26"
			y="1,1,2,2,3,4,5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="26"
				y="5"
			[/source]
			[destination]
				x="27"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="396246626"
			[results]
				chance="60"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2135667769"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1397356505"
			[results]
				chance="60"
				damage="3"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="20,21,22,23,24,25,26,27"
			y="3,4,3,3,3,4,4,5"
		[/move]
	[/command]
	[command]
		[move]
			x="20,21,22,23,24,25,26"
			y="2,3,3,3,3,3,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Fovne has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="19,20,21,22,23,24"
			y="5,4,5,4,4,3"
		[/move]
	[/command]
	[command]
		[move]
			x="15,16,17,18,19,20"
			y="8,7,7,6,6,5"
		[/move]
	[/command]
	[command]
		[move]
			x="11,12,13,14,15,16,17,18"
			y="12,11,11,10,10,9,9,8"
		[/move]
	[/command]
	[command]
		[move]
			x="17,16,15,14,13,12"
			y="10,10,11,11,12,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="3"
			x="11"
			y="12"
		[/recruit]
		[random]
			value="479139775"
		[/random]
		[random]
			value="778365012"
		[/random]
		[random]
			value="1429489304"
		[/random]
		[random]
			value="259026923"
		[/random]
		[random]
			value="162609343"
		[/random]
		[random]
			value="242477766"
		[/random]
		[random]
			value="489943003"
		[/random]
		[random]
			value="923759491"
		[/random]
		[random]
			value="2067319148"
		[/random]
		[random]
			value="1548953200"
		[/random]
		[random]
			value="399770623"
		[/random]
		[random]
			value="1084106868"
		[/random]
		[random]
			value="1891019718"
		[/random]
		[random]
			value="872789661"
		[/random]
		[random]
			value="423668222"
			[results]
				checksum="80M696kdt17Q-aGPQ75eF4RIQSHu+GNvRCnIqFywJTCHmxqx1EwQVOxDmGODNOzCNSPAGPJpfzEDPJCs,8AqDwqDqPxMAuFRQxPzFwD4s97wU,890qvi7pTKIPwx3xSB"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="plk2 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="27"
				y="5"
			[/source]
			[destination]
				x="28"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="1821941554"
			[results]
				chance="60"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1910798779"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="kamikaze has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,27,26"
			y="7,7,7,6,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="6"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="641497935"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="992325997"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1016732857"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1596470778"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1217191636"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="johanna has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="alluuu has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lordwill has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,27"
			y="8,7,7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="27"
				y="6"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1811174721"
			[results]
				chance="70"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1378852585"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="830190057"
			[results]
				chance="70"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1666961191"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="903163343"
			[results]
				chance="70"
				damage="7"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,29,29,28,27"
			y="4,4,3,2,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="3"
			[/source]
			[destination]
				x="27"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="1865202742"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="992211986"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1578160346"
			[results]
				chance="60"
				damage="8"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lordwill has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,26,26,26"
			y="8,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="5"
			[/source]
			[destination]
				x="26"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="36646624"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1119235507"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="359982478"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="532258407"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1756640954"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pasquale has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Amorfati has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,31,31,31,31"
			y="7,8,9,10,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,28,29,30,31,32"
			y="14,15,15,16,16,17,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,23,22,21"
			y="15,16,16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bjorn has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,26,27,28,29,30,31"
			y="18,17,18,18,18,17,18"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="21,20"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="20,20,19,19,18"
			y="16,17,18,19,19"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="5"
			x="30"
			y="12"
		[/recruit]
		[random]
			value="153862298"
		[/random]
		[random]
			value="285111234"
		[/random]
		[random]
			value="1438732157"
		[/random]
		[random]
			value="503082132"
		[/random]
		[random]
			value="1878326137"
		[/random]
		[random]
			value="620350606"
		[/random]
		[random]
			value="1651337609"
		[/random]
		[random]
			value="907274108"
		[/random]
		[random]
			value="1518625603"
		[/random]
		[random]
			value="1037923621"
		[/random]
		[random]
			value="200076370"
		[/random]
		[random]
			value="1504664183"
		[/random]
		[random]
			value="1581290792"
		[/random]
		[random]
			value="1641779785"
		[/random]
		[random]
			value="2147337430"
			[results]
				checksum="wmNOCQ,<jCB,xNaeN9c8kBjp>f.33i3,bi2g6odf4d42johapi+j5>4.,j0+4d89dk>9,2l6B.fc-I>-,WJ2j2m>8oQ0birbp4<4OkUyc1nTJvFiKQ-515ck2+Ih5Kjg"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tallomin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,29,28"
			y="6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="0"
			[source]
				x="28"
				y="4"
			[/source]
			[destination]
				x="27"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="789909112"
			[results]
				chance="70"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1845579805"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="907554373"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2143142732"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,29,28,27"
			y="5,4,3,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="0"
			[source]
				x="27"
				y="4"
			[/source]
			[destination]
				x="27"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1164582559"
			[results]
				chance="70"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2012170283"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="806282018"
			[results]
				chance="70"
				damage="12"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,27"
			y="5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="5"
			[/source]
			[destination]
				x="26"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="735274326"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="957185795"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="142746605"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2136624306"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="18222752"
			[results]
				chance="60"
				damage="8"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ottavio has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Sonnenwind has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,25,26"
			y="3,3,2"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="26"
				y="2"
			[/source]
			[destination]
				x="27"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="203409726"
			[results]
				chance="60"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="944893815"
			[results]
				chance="60"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1711044611"
			[results]
				chance="60"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1350524936"
			[results]
				chance="60"
				damage="9"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ok has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,25,24,24,25"
			y="3,4,4,5,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="25"
				y="6"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="343322003"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="158754783"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1785542570"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="diwid has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,19,20,21,22,23,24,25"
			y="8,8,7,7,6,7,6,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="25"
				y="7"
			[/source]
			[destination]
				x="26"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="1694550993"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="860957196"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Seoz has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="marico has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="20,21,22,23,24"
			y="5,5,4,4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pasquale has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,18,19,20,21,22,23"
			y="8,7,7,6,6,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Irmao-Verdade has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,11"
			y="12,13"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,11,11,11,11,11,11,12"
			y="13,14,15,16,17,18,19,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="BURN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="30,31,32,33,34,35,36,37,38,39"
			y="20,20,19,19,18,18,17,17,16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Waaagh has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="roddroys has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="5"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="1643640037"
		[/random]
		[random]
			value="972963666"
		[/random]
		[random]
			value="2137506479"
		[/random]
		[random]
			value="134100322"
		[/random]
		[random]
			value="544627597"
		[/random]
		[random]
			value="1235448432"
		[/random]
		[random]
			value="1915889581"
		[/random]
		[random]
			value="1466053076"
		[/random]
		[random]
			value="1837086257"
		[/random]
		[random]
			value="381807516"
		[/random]
		[random]
			value="343889938"
		[/random]
		[random]
			value="942559473"
		[/random]
		[random]
			value="1173249112"
		[/random]
		[random]
			value="856082796"
		[/random]
		[random]
			value="1497552706"
			[results]
				checksum="bfk10b5br.lQp.+wk<Ab-239eel1N5llg71o3Xl17<1,5g7Z-k6kZlaGnZ68p4>gn6n3e1iafnb5+9fm4>73a+>+.57mc,6d1edjnNmi-f,a8gbj.r.awWJe+,PQ3hpQ"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tarrathiel has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="5"
			x="11"
			y="12"
		[/recruit]
		[random]
			value="779744301"
		[/random]
		[random]
			value="1052048303"
		[/random]
		[random]
			value="764759197"
		[/random]
		[random]
			value="1161551817"
		[/random]
		[random]
			value="1395938241"
		[/random]
		[random]
			value="1707318671"
		[/random]
		[random]
			value="187317281"
		[/random]
		[random]
			value="104537389"
		[/random]
		[random]
			value="1057387729"
		[/random]
		[random]
			value="621161752"
		[/random]
		[random]
			value="2044299226"
		[/random]
		[random]
			value="326905240"
		[/random]
		[random]
			value="1506477612"
		[/random]
		[random]
			value="1570577744"
		[/random]
		[random]
			value="1770467530"
			[results]
				checksum="bfk10b5br.lQp.+wk<Ab-239eel1N5llg71o3Xl17<1,5g7Z-k6kZlaGnZ68p4>gn6n3e1iafnb5+9fm4>73a+>+.57mc,6d1edjnNmi-f,a8gbj.r.awWJe+,PQ3hpQ"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Michaelmax has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,13,13,14,14,15"
			y="12,13,14,14,15,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Seoz has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="agencephotormn has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="quisas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,33,34,35"
			y="17,18,17,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31,31,31,32"
			y="11,10,9,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Roym has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pasquale has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SM_Ile has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,28,29,30,31,32"
			y="4,3,4,4,5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="howwitty has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,29,30,31,32,33"
			y="4,4,4,5,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dylan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="6"
			x="31"
			y="8"
		[/recruit]
		[random]
			value="266584082"
		[/random]
		[random]
			value="1030167424"
		[/random]
		[random]
			value="595390678"
		[/random]
		[random]
			value="358724170"
		[/random]
		[random]
			value="1594289946"
		[/random]
		[random]
			value="783685585"
		[/random]
		[random]
			value="720343333"
		[/random]
		[random]
			value="2011562796"
		[/random]
		[random]
			value="222248491"
		[/random]
		[random]
			value="1163899411"
		[/random]
		[random]
			value="415005497"
		[/random]
		[random]
			value="609198506"
		[/random]
		[random]
			value="700848426"
			[results]
				checksum="RqMsBKzD0FKjsFwUULNJZmGIxrMqRUrwAqFDQBsGIPzPLBOztLbGuuQUIGIP7KIRwurIsmHBB+FVoqJyy6J8xkkBsfg-8bR7eEHFHBVJRlsCL4wQFtHLK,fBFKhGav7k"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Mathias has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="wieker has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dax92 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="BURN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="3"
			x="31"
			y="7"
		[/recruit]
		[random]
			value="327246296"
		[/random]
		[random]
			value="988937819"
		[/random]
		[random]
			value="1967237578"
		[/random]
		[random]
			value="922636974"
		[/random]
		[random]
			value="1347661989"
		[/random]
		[random]
			value="1414043877"
		[/random]
		[random]
			value="1706322559"
		[/random]
		[random]
			value="2068005323"
		[/random]
		[random]
			value="1278123025"
		[/random]
		[random]
			value="1928571050"
		[/random]
		[random]
			value="1084421086"
		[/random]
		[random]
			value="1693128523"
		[/random]
		[random]
			value="390285909"
			[results]
				checksum="wIq0h4Aje6ZNhfnNl+7b,Ha4jCJxd>Z4D>emIBh6hCW2BmtJ8j1v.9xmODNURxriEsBIuurvENcQBQBPqyPrRxP5tBQME,Ezpfu49w6JQVkN94JBwVAIsdMAIZHHpExA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,28,29,30"
			y="5,6,6,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,27,28,29"
			y="6,7,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,27,28,29,30,31"
			y="5,5,4,4,4,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,28,29,30"
			y="6,6,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,19,20,21,22,23,24,25,26"
			y="19,19,18,18,17,17,16,16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,32,33,34,35,36,37"
			y="18,17,17,16,16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,31,32,33,34,35,36,37,38,39"
			y="12,13,13,14,14,15,14,14,14,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16"
			y="20,21,20,21,20"
		[/move]
	[/command]
	[command]
		[move]
			x="16,17,18,19,20,21"
			y="20,21,20,21,21,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="sandwich has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="39,38,37,37,36,35,35,34,34,33"
			y="16,16,17,18,18,19,20,20,21,22"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SweetBobuleh has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mark_twain has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="TIGER has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ced has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,12,13,14,15,16,17"
			y="12,11,11,10,10,9,9"
		[/move]
	[/command]
	[command]
		[move]
			x="11,12,13,14,15,15,16"
			y="11,11,11,10,10,9,8"
		[/move]
	[/command]
	[command]
		[move]
			x="15,14,14,13,13,12"
			y="16,15,14,14,13,12"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="1631755896"
		[/random]
		[random]
			value="960136549"
		[/random]
		[random]
			value="1237665022"
		[/random]
		[random]
			value="214266914"
		[/random]
		[random]
			value="1319314772"
		[/random]
		[random]
			value="695881106"
		[/random]
		[random]
			value="1086020040"
		[/random]
		[random]
			value="985644333"
		[/random]
		[random]
			value="746094358"
		[/random]
		[random]
			value="980384102"
		[/random]
		[random]
			value="1139306160"
		[/random]
		[random]
			value="1047194058"
		[/random]
		[random]
			value="1074752656"
		[/random]
		[random]
			value="1897027768"
		[/random]
		[random]
			value="768767807"
			[results]
				checksum="3Cf1OSv,C7F>rbJjRs8AZ92.m<LzFBEHnuR73QRpoMa2r4.k-cpOaw87,.Y8Z.5ndaB-kwWvSlbAfbufC3iaj7hobd->Zheuk<>2fa5>ai01-b1+6Z+40CN5c8b.>X,4"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Mathias has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="str1der has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="green002 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="25,25,26"
			y="7,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="25,26,27"
			y="6,5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xtreme-one has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,24,25,26,27,28,29"
			y="6,6,6,5,5,5,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="29"
				y="6"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="328069493"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="678023232"
			[results]
				chance="50"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="26007519"
			[results]
				chance="50"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2125776111"
			[results]
				chance="50"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="26,27,28,29,29,30"
			y="2,3,3,4,5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="30"
				y="5"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="1168612806"
			[results]
				chance="50"
				damage="9"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="24,25,26,27,28,29"
			y="3,4,4,5,4,5"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Senile has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Death1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,30,30"
			y="8,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="30"
				y="6"
			[/source]
			[destination]
				x="29"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="661572952"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="747003323"
			[results]
				chance="50"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="646881187"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="881977826"
			[results]
				chance="50"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1120592681"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="31"
				y="5"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1304112083"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1866176318"
			[results]
				chance="60"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1973334212"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1005823270"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1337607981"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31,31"
			y="8,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="31"
				y="6"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1969951743"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1149207410"
			[results]
				chance="60"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="363013356"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="568316852"
			[results]
				chance="60"
				damage="10"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31"
			y="7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="31"
				y="6"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="522618462"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="537747460"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1928281585"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="747164366"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1519840340"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,29,28,27"
			y="7,8,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="27"
				y="8"
			[/source]
			[destination]
				x="26"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="735129742"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1497209777"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1854608419"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="715559326"
			[results]
				chance="60"
				damage="1"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="129271823"
			[results]
				chance="50"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="33,33,34"
			y="6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,32,31"
			y="5,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="0"
			x="31"
			y="8"
		[/recruit]
		[random]
			value="915730794"
		[/random]
		[random]
			value="1074054648"
		[/random]
		[random]
			value="736319618"
		[/random]
		[random]
			value="1448173677"
		[/random]
		[random]
			value="908090877"
		[/random]
		[random]
			value="32078281"
		[/random]
		[random]
			value="899613656"
		[/random]
		[random]
			value="2127891595"
		[/random]
		[random]
			value="1850816242"
		[/random]
		[random]
			value="1560610632"
		[/random]
		[random]
			value="2090249692"
		[/random]
		[random]
			value="398648376"
		[/random]
		[random]
			value="1412952780"
		[/random]
		[random]
			value="731381200"
		[/random]
		[random]
			value="1329142422"
			[results]
				checksum="xNa6Bryn.D--c-i+04IRoaOL-EyQnvClJF7qE383X-fb-Zy1ji46+2f+9l+5<foc<nn6f23854.o1418om4H8bFWB0pjc+cZng<m8e6X68+vn>t55bKrqZdmOCaJmIaF"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="HH_dead has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Xplorer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="paedie has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Slartibartfast has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="35,34,33,32,32,31,30"
			y="17,17,18,18,19,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="seawolf has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Necrophage has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="37,37,36,35,35,34,34,33"
			y="15,14,13,13,12,11,10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="39,39,39,39,39,38,38,37"
			y="15,16,17,18,19,19,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,27"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="27,28,29,30,31"
			y="5,4,4,3,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="31"
				y="4"
			[/source]
			[destination]
				x="31"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1695849769"
			[results]
				chance="70"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1640295478"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="924266305"
			[results]
				chance="70"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DAKKA-MattDakka has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="30,30"
			y="5,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="30"
				y="4"
			[/source]
			[destination]
				x="31"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1740830523"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1652660456"
			[results]
				chance="60"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="sandwich has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Acidflaw has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MortalFlaw has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ingvar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="29"
				y="6"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="684299246"
			[results]
				chance="50"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="746281363"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1880148186"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="668477007"
			[results]
				chance="50"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="smiling_atheist has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="29,30"
			y="5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="30"
				y="5"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="1211206865"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="168119879"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1495610219"
			[results]
				chance="50"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="909570611"
			[results]
				chance="70"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1213483407"
			[results]
				chance="50"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lobezno has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="17,18,19,20,21,22,23"
			y="9,8,8,7,7,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ziomalon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,17,18,19,20,21,22"
			y="8,8,7,7,6,6,5"
		[/move]
	[/command]
	[command]
		[move]
			x="11,12,13,14,15,16,17"
			y="11,11,11,10,10,9,9"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="11"
			y="11"
		[/recruit]
		[random]
			value="1631438735"
		[/random]
		[random]
			value="1850580344"
		[/random]
		[random]
			value="704686790"
		[/random]
		[random]
			value="1178776310"
		[/random]
		[random]
			value="423433949"
		[/random]
		[random]
			value="234556452"
		[/random]
		[random]
			value="1510928608"
		[/random]
		[random]
			value="1827346614"
		[/random]
		[random]
			value="54819018"
		[/random]
		[random]
			value="1925699046"
		[/random]
		[random]
			value="778500679"
		[/random]
		[random]
			value="72954045"
		[/random]
		[random]
			value="1478685905"
		[/random]
		[random]
			value="1792041486"
		[/random]
		[random]
			value="1677538942"
			[results]
				checksum="4zf1OSw,C7F>rbJjIs8AZ92.m<KzFBEHnuR73QRpoMa2r4.k-cpOaw87,.Y8Z.5ndaB-kwWvSlbAfbufC3iaj7hobd->Zhenk<>2fa5>ai01-b1+6Z+40CN5c8b.>X,4"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="5"
			x="11"
			y="12"
		[/recruit]
		[random]
			value="415435414"
		[/random]
		[random]
			value="1623726092"
		[/random]
		[random]
			value="1872082820"
		[/random]
		[random]
			value="1120122204"
		[/random]
		[random]
			value="655018754"
		[/random]
		[random]
			value="148033121"
		[/random]
		[random]
			value="1354678656"
		[/random]
		[random]
			value="18463714"
		[/random]
		[random]
			value="1975379735"
		[/random]
		[random]
			value="1409497675"
		[/random]
		[random]
			value="1944162760"
		[/random]
		[random]
			value="606396766"
		[/random]
		[random]
			value="1482451720"
		[/random]
		[random]
			value="1275365018"
		[/random]
		[random]
			value="250954605"
			[results]
				checksum="bfk10b5br.lQp.+wk<Ab-239eel1N5llg71o3Xl17<1,5g7Z-k6kZlaGnZ68p4>gn6n3e1iafnb5+9fm4>73a+>+.57mc,6d1edjnNmi-f,a8gbj.r.awWJe+,PQ3hpQ"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="21,22,23,24,24,24,24,24,24,24"
			y="21,20,20,19,18,17,16,15,14,13"
		[/move]
	[/command]
	[command]
		[move]
			x="33,34,35,36,37,38,38,39,39,40"
			y="22,21,21,20,20,19,18,18,17,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pasquale has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="JK2K2G has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DDB_Diego has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,26,27,28,29,30"
			y="8,7,7,7,7,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="0"
			[source]
				x="30"
				y="6"
			[/source]
			[destination]
				x="31"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="651230823"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="549826428"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="688442978"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="168115796"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="fenix has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DAKKA_AgotheRock has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16,17"
			y="12,12,11,11,10,10"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="wieker has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="0"
			[source]
				x="31"
				y="7"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="1714430048"
			[results]
				chance="70"
				damage="12"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1485001996"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1137513543"
			[results]
				chance="70"
				damage="12"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="kamikaze has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Craz has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Sacdos has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="True has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xtreme-one has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Nath has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,32"
			y="6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30"
			y="8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="2"
			x="31"
			y="8"
		[/recruit]
		[random]
			value="1050443281"
		[/random]
		[random]
			value="1441700921"
		[/random]
		[random]
			value="1108143451"
		[/random]
		[random]
			value="1126397336"
		[/random]
		[random]
			value="994773611"
		[/random]
		[random]
			value="1979009483"
		[/random]
		[random]
			value="1057040828"
		[/random]
		[random]
			value="2056668517"
		[/random]
		[random]
			value="1563837399"
		[/random]
		[random]
			value="1029283636"
		[/random]
		[random]
			value="617683627"
		[/random]
		[random]
			value="1539619685"
		[/random]
		[random]
			value="662713713"
			[results]
				checksum="TuuzMJvu3JOmTCCoKGpBJPA6SCMFtLEzKIxOCmtqSOKJLCFwmIsr1QENmxPFHFw.RFKFnqypNLqM8mwoForIhF8xkkBsH9ih>N4ftxqADyQNdDsofqQwNFrCg8vPGzPi"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pechenega has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,31,30"
			y="7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="30"
				y="6"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="135439923"
			[results]
				chance="70"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2080679579"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="254539620"
			[results]
				chance="70"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,31,31"
			y="7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="0"
			[source]
				x="31"
				y="6"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1880356323"
			[results]
				chance="70"
				damage="15"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="142728287"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="34,33,32,31"
			y="4,5,5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="0"
			[source]
				x="31"
				y="5"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="2011095648"
			[results]
				chance="70"
				damage="15"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MoraVen has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="montoto has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="37,37,37,37,37,38,38,39"
			y="21,20,19,18,17,16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,27,27,27,27,27,27,26"
			y="16,15,14,13,12,11,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,29,28,27,27,27"
			y="20,19,19,18,18,17,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,33,33,32"
			y="5,5,4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="32"
				y="3"
			[/source]
			[destination]
				x="31"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="787889191"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1455721213"
			[results]
				chance="50"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="587461919"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="973417681"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1386935848"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Helmi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="karass has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Conscience has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,27,27"
			y="8,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="33,33,33,33,33,33,32"
			y="10,9,8,7,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="32"
				y="4"
			[/source]
			[destination]
				x="31"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="1572701445"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="615560378"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="404925970"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1059311371"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="799291594"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1994197166"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="julien has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ossorin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="29,28"
			y="6,6"
		[/move]
	[/command]
	[command]
		[move]
			x="30,29,29"
			y="4,5,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="29"
				y="6"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="948188863"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="531814951"
			[results]
				chance="60"
				damage="14"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2027368217"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1191972089"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30672634"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1712974422"
			[results]
				chance="60"
				damage="14"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1996128836"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="47036878"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Maimon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="28,29"
			y="6,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="29"
				y="7"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="165178128"
			[results]
				chance="50"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1154109372"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2017022876"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1121200920"
			[results]
				chance="70"
				damage="14"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="614618611"
			[results]
				chance="50"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1600111811"
			[results]
				chance="70"
				damage="14"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="31,30,29,29,30"
			y="4,3,4,5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="30"
				y="5"
			[/source]
			[destination]
				x="30"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="1567523047"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="52592064"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1011675728"
			[results]
				chance="50"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Acidflaw has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="gleb3 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="gg :-)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="singalen"
			message="thanks, gg"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="microhdd has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Grzegt has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="KnightKunibert"
			message="thx 2"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lunara has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Nubie has logged into the lobby"
		[/speak]
	[/command]
[/replay]
[snapshot]
	campaign_type="multiplayer"
	completion="running"
	current_tod="4"
#textdomain wesnoth-multiplayer
	description=_ "Long ago, a great star fell from the heavens, leaving its mark on this coniferous region."
	difficulty="NORMAL"
	end_text_duration="0"
	experience_modifier="70"
	hash=",l0WIdlvwhRv2MrLw7-GzItIrHmf3t<e7aikaCC34Hxs1Bn-aQuq5Zg0NcCm1unEf0+QkII+JmJPfX<NMtPzI5V3pyr.3QqT40HMe+f8q.0Lf0JTNoLKvhjpkCKXq9hq"
	id="multiplayer_Fallenstar_Lake"
	label="2p - Fallenstar Lake"
	map_data="border_size=1
usage=map

Mm^Xm       , Mm^Xm       , Mm          , Hh          , Mm          , Hh          , Hh          , Gg          , Rd          , Rd          , Gg          , Wwf         , Wwf         , Gg          , Mm          , Hh          , Gs^Fp       , Gs^Fp       , Gg          , Wwf         , Hh          , Ce          , Hh          , Wwf         , Gg          , Gs^Fp       , Mm          , Hh          , Gs^Fp       , Gg          , Wwf         , Wwf         , Gg          , Rd          , Rd          , Ggf         , Hh          , Hh          , Mm          , Hh          , Mm          , Mm          , Mm^Xm       
Mm          , Mm^Xm       , Mm          , Mm          , Hh          , Hh          , Rd          , Rd^Uf       , Mm          , Gs^Fp       , Hh          , Gg          , Wwf         , Gg          , Gg          , Hh          , Gg          , Hh          , Gg          , Wwf         , Wwf         , Ce          , Wwf         , Wwf         , Gg          , Hh          , Gg          , Hh          , Gg          , Gg          , Wwf         , Gg          , Hh          , Gs^Fp       , Mm          , Rd^Uf       , Rd          , Hh          , Hh          , Mm          , Mm          , Mm^Xm       , Mm^Xm       
Mm^Xm       , Mm^Xm       , Mm          , Mm          , Hh          , Gg          , Rd          , Gg          , Gg          , Hh          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gs^Fp       , Gg          , Wwf         , Ggf         , Gs^Fp       , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Hh          , Gg          , Gg          , Rd          , Ggf         , Hh          , Mm          , Mm          , Mm^Xm       , Mm          
Mm          , Mm          , Mm          , Gs^Fp       , Gs^Fp       , Gs^Fp       , Rd          , Gs^Fp       , Ggf         , Gg          , Gs^Fp       , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Ce          , Gg          , Gg          , Wwf         , Gg          , Gg          , Ce          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Gs^Fp       , Rd          , Gs^Fp       , Gs^Fp       , Gs^Fp       , Mm          , Mm^Xm       , Mm          
Hh          , Gs^Fp       , Gs^Fp       , Hh          , Rd          , Rd          , Gs^Fp       , Hh          , Gg^Vh       , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gs^Fp       , Gs^Fp       , Wwf         , Wwf         , Wwf         , Gs^Fp       , Gs^Fp       , Gg          , Wwf         , Gg          , Gg          , Gg          , Gg          , Ggf         , Gg          , Gg          , Gg^Vh       , Hh          , Gs^Fp       , Rd          , Rd          , Hh          , Gs^Fp       , Gs^Fp       , Hh          
Gs^Fp       , Gs^Fp       , Rd          , Rd          , Gs^Fp       , Rd          , Rd          , Rd          , Rd          , Gg          , Gg          , Gg          , Rd          , Hh          , Gs^Fp       , Ss^Vhs      , Ggf         , Wwf         , Wwf         , Wwf         , Wwf         , Hh          , Wwf         , Wwf         , Wwf         , Wwf         , Ggf         , Ss^Vhs      , Gs^Fp       , Hh          , Rd          , Gg          , Gg          , Gg          , Rd          , Rd          , Rd          , Rd          , Gs^Fp       , Rd          , Rd          , Gs^Fp       , Gs^Fp       
Gs^Fp       , Gs^Fp       , Ce          , Gs^Fp       , Gs^Fp       , Mm          , Gs^Fp       , Gs^Fp       , Hh          , Rd          , Rd          , Rd          , Gs^Fp       , Mm          , Gg          , Gg          , Gg          , Gg          , Hh          , Mm          , Ce          , Wwf         , Ce          , Mm          , Hh          , Gg          , Gg          , Ggf         , Gg          , Mm          , Gs^Fp       , Rd          , Rd          , Rd          , Hh          , Gg          , Gs^Fp       , Mm          , Gs^Fp       , Gs^Fp       , Ce          , Gs^Fp       , Gs^Fp       
Ce          , Ce          , 1 Ke        , Gs^Fp       , Rr          , Hh          , Rd          , Hh          , Mm          , Gs^Fp       , Ke          , Ce          , Gg          , Gg          , Rd^Uf       , Gg          , Gg          , Gg          , Gg          , Hh          , Wwf         , Wwf         , Wwf         , Hh          , Gg          , Gg          , Gg          , Gg          , Rd^Uf       , Gg          , Gg          , Ce          , Ke          , Gs^Fp       , Mm          , Gs^Fp       , Hh          , Hh          , Rr          , Gs^Fp       , 2 Ke        , Ce          , Ce          
Ce          , Ce          , Ce          , Rr          , Rr          , Gs^Fp       , Mm^Vhh      , Rd          , Rd          , Hh          , Ggf         , Ce          , Gg          , Hh          , Mm          , Rd          , Gg^Ve       , Gg          , Wwf         , Wwf         , Gg^Fp       , Ww          , Gg^Fp       , Wwf         , Wwf         , Gg          , Gg^Ve       , Rd          , Mm          , Hh          , Gg          , Ce          , Ggf         , Hh          , Rd          , Rd          , Mm^Vhh      , Gs^Fp       , Rr          , Rr          , Ce          , Ce          , Ce          
Ce          , Ce          , Gs^Fp       , Gs^Fp       , Rr          , Hh          , Gs^Fp       , Rd^Uf       , Gg          , Gg          , Gg          , Gg          , Gg          , Hh          , Gs^Fp       , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gg          , Wwf         , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gs^Fp       , Hh          , Gg          , Gg          , Gg          , Gg          , Gg          , Rd^Uf       , Gs^Fp       , Gg          , Rr          , Gs^Fp       , Gs^Fp       , Ce          , Ce          
Wwf         , Wwf         , Wwf         , Rr          , Gs^Fp       , Rr          , Rr          , Gg          , Gs^Fp       , Hh          , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Hh          , Gs^Fp       , Gg          , Rr          , Rr          , Gs^Fp       , Rr          , Rr          , Wwf         , Wwf         
Gg          , Gg          , Wwf         , Gs^Fp       , Ggf         , Hh          , Gg          , Rr          , Rr          , Gs^Fp       , Rr          , Ke          , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Gg          , Mm          , Gg          , Hh          , Wwf         , Hh          , Gg          , Mm          , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Ke          , Rr          , Gs^Fp       , Rr          , Rr          , Gg          , Hh          , Rr          , Gs^Fp       , Wwf         , Wwf         , Wwf         
Wwf         , Wwf         , Gg          , Wwf         , Gs^Fp       , Gs^Fp       , Mm          , Hh          , Gs^Fp       , Rr          , Gs^Fp       , Ce          , Ke          , Rr          , Gg^Vh       , Gg          , Hh          , Hh          , Mm^Xm       , Mm^Xm       , Wwf         , Wwf         , Wwf         , Mm^Xm       , Mm^Xm       , Hh          , Hh          , Gg          , Gg^Vh       , Rr          , Ke          , Ce          , Gs^Fp       , Rr          , Gs^Fp       , Hh          , Mm          , Gs^Fp       , Gs^Fp       , Wwf         , Rr          , Gs^Fp       , Gs^Fp       
Gs^Fp       , Gs^Fp       , Gg          , Wwf         , Wwf         , Gs^Fp       , Wwf         , Wwf         , Rr          , Rr          , Gg          , Gg          , Rr          , Rr          , Gg          , Gg          , Mm^Xm       , Mm^Xm       , Gs^Fp       , Wwf         , Ww          , Ww          , Ww          , Wwf         , Gs^Fp       , Mm^Xm       , Mm^Xm       , Gg          , Gg          , Rr          , Rr          , Gg          , Gg          , Rr          , Rr          , Wwf         , Wwf         , Gs^Fp       , Wwf         , Wwf         , Wwf         , Gs^Fp       , Hh          
Gs^Fp       , Gs^Fp       , Gg          , Gg^Fp       , Wwf         , Wwf         , Hh          , Mm          , Hh          , Gg          , Hh          , Gs^Fp       , Gg          , Gg          , Gs^Fp       , Ggf         , Mm          , Mm^Xm       , Wwf         , Wwf         , Ww          , Ww          , Ww          , Wwf         , Wwf         , Mm^Xm       , Mm          , Gg          , Gs^Fp       , Gg          , Gg          , Gs^Fp       , Hh          , Gg          , Hh          , Mm          , Hh          , Wwf         , Wwf         , Gs^Fp       , Gg          , Wwf         , Wwf         
Rd          , Rd          , Gg          , Gg^Ve       , Wwf         , Hh          , Mm          , Gs^Fp       , Gs^Fp       , Gg          , Gg^Ve       , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Wwf         , Ww          , Ww          , Wo          , Wo          , Wo          , Ww          , Ww          , Wwf         , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg^Ve       , Gg          , Gs^Fp       , Gs^Fp       , Mm          , Hh          , Wwf         , Gg^Ve       , Gg          , Gg          , Rd          
Hh          , Gg          , Gs^Fp       , Gg          , Gg          , Wwf         , Wwf         , Rr          , Rr          , Rr          , Rr          , Wwf         , Wwf         , Gg          , Hh          , Ss^Vhs      , Wwf         , Ww          , Ww          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Wwf         , Ss^Vhs      , Hh          , Gg          , Wwf         , Wwf         , Rr          , Rr          , Rr          , Rr          , Wwf         , Wwf         , Gs^Fp       , Gg          , Gs^Fp       , Rd          , Gg          
Rd^Uf       , Rd          , Mm          , Gs^Fp       , Ggf         , Gg          , Ww          , Hh          , Gg          , Gs^Fp       , Rr          , Rr          , Wwf         , Mm          , Mm^Xm       , Wwf         , Rr          , Wwf         , Wwf         , Ww          , Wo          , Mm^Xm       , Wo          , Ww          , Wwf         , Wwf         , Rr          , Wwf         , Mm^Xm       , Mm          , Wwf         , Rr          , Rr          , Gs^Fp       , Gg          , Hh          , Ww          , Gg          , Gg          , Hh          , Mm          , Rd          , Hh          
Rd^Uf       , Rd          , Rd          , Hh          , Gg          , Gg          , Ww          , Gs^Fp       , Gg          , Gg          , Rr          , Hh          , Mm          , Wwf         , Wwf         , Wwf         , Mm^Xm       , Gs^Fp       , Wwf         , Ww          , Ww          , Wo          , Ww          , Ww          , Wwf         , Gs^Fp       , Mm^Xm       , Wwf         , Wwf         , Wwf         , Mm          , Hh          , Rr          , Gg          , Gg          , Gs^Fp       , Ww          , Gg          , Gg          , Gs^Fp       , Rd          , Rd          , Rd          
Gs^Fp       , Gs^Fp       , Gs^Fp       , Gg          , Gg          , Ww          , Gg          , Hh          , Gg          , Rr          , Rr          , Hh          , Wwf         , Wwf         , Gg^Uf       , Ke          , Ce          , Ce          , Hh          , Wwf         , Ww          , Ww          , Ww          , Wwf         , Hh          , Ce          , Ce          , Ke          , Gg^Uf       , Wwf         , Wwf         , Hh          , Rr          , Rr          , Gg          , Hh          , Gg          , Ww          , Gg          , Rd          , Gs^Fp       , Gs^Fp       , Gs^Fp       
Mm          , Hh          , Rd^Uf       , Gg          , Gg          , Wwf         , Wwf         , Gg          , Gg          , Gg          , Wwf         , Wwf         , Ss^Vhs      , Wwf         , Gs^Fp       , Hh          , Ce          , Mm^Xm       , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Mm^Xm       , Ce          , Hh          , Gs^Fp       , Wwf         , Ss^Vhs      , Wwf         , Wwf         , Gg          , Gg          , Gg          , Wwf         , Wwf         , Gg          , Gg          , Rd^Uf       , Hh          , Hh          
Gs^Fp       , Gs^Fp       , Rd          , Rd          , Rd          , Gg^Ve       , Gg          , Ww          , Ww          , Ww          , Ww          , Gg          , Ss          , Gg          , Ss          , Ce          , Ss          , Wwf         , Mm^Xm       , Gs^Fp       , Hh          , Hh          , Hh          , Gs^Fp       , Mm^Xm       , Wwf         , Ss          , Ce          , Ss          , Gg          , Ss          , Gg          , Ww          , Ww          , Ww          , Ww          , Gg          , Gg^Ve       , Rd          , Rd          , Rd          , Gs^Fp       , Gs^Fp       
Mm          , Hh          , Gs^Fp       , Mm          , Hh          , Rd          , Gs^Fp       , Gg          , Gs^Fp       , Gs^Fp       , Ww          , Gs^Fp       , Mm          , Ss          , Gs^Fp       , Ss          , Mm^Xm       , Hh          , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Hh          , Mm^Xm       , Ss          , Gs^Fp       , Ss          , Mm          , Gg^Fp       , Ww          , Gg^Fp       , Hh          , Gg          , Gs^Fp       , Rd          , Hh          , Mm          , Hh          , Mm          , Mm          
Mm          , Mm          , Hh          , Hh          , Gs^Fp       , Rd^Uf       , Hh          , Gg          , Hh          , Ww          , Hh          , Hh          , Hh          , Gs^Fp       , Hh          , Mm          , Mm^Xm       , Mm          , Mm          , Mm          , Mm^Xm       , Mm          , Mm          , Mm          , Mm^Xm       , Mm          , Mm^Xm       , Hh          , Gs^Fp       , Gs^Fp       , Hh          , Hh          , Hh          , Ww          , Gs^Fp       , Gs^Fp       , Hh          , Rd^Uf       , Gs^Fp       , Mm          , Hh          , Mm          , Mm          
"
	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 - Fallenstar Lake"
	next_underlying_unit_id="34"
#textdomain wesnoth
	objectives=_ "Victory:
@Defeat enemy leader(s)"
	observer="yes"
	playing_team="0"
	random_calls="1"
	random_seed="191336950"
	random_start_time="no"
	snapshot="yes"
	turn_at="11"
	turns="-1"
	unit_wml_ids="Bone Shooter,Dark Adept,Drake Burner,Drake Clasher,Drake Flare,Drake Glider,Fire Drake,Ghost,Ghoul,Saurian Augur,Saurian Oracle,Saurian Skirmisher,Saurian Soothsayer,Skeleton,Skeleton Archer,Vampire Bat,Walking Corpse,era_events"
	version="1.6"
	[side]
		action_bonus_count="3"
		aggression="0.5"
		allow_player="yes"
		caution="0.25"
		colour="1"
		controller="human"
		countdown_time="231095"
		current_player="KnightKunibert"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,archer,healer,scout,scout"
		gold="24"
		hidden="no"
		id="KnightKunibert1"
		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="Drake Burner,Drake Clasher,Drake Fighter,Drake Glider,Saurian Augur,Saurian Skirmisher"
		recruitment_pattern="fighter,fighter,archer,healer,scout,scout"
		save_id="KnightKunibert1"
		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,healer,scout,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="3"
			y="15"
		[/village]
		[village]
			x="5"
			y="21"
		[/village]
		[village]
			x="6"
			y="8"
		[/village]
		[village]
			x="8"
			y="4"
		[/village]
		[village]
			x="10"
			y="15"
		[/village]
		[village]
			x="12"
			y="20"
		[/village]
		[village]
			x="14"
			y="12"
		[/village]
		[village]
			x="15"
			y="5"
		[/village]
		[village]
			x="15"
			y="16"
		[/village]
		[village]
			x="16"
			y="8"
		[/village]
		[unit]
			advances_to="Drake Flameheart"
			alignment="lawful"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="1"
			controller="human"
			cost="35"
			current_player="KnightKunibert"
			die_sound="drake-die.ogg"
			experience="0"
			facing="ne"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="55"
			id="KnightKunibert1"
			image="units/drakes/flare.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Drake Flare"
			leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="55"
			max_moves="5"
			movement="5"
			movement_type="drakefly"
			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/drakes/burner.png"
			race="drake"
			random_leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior"
			random_traits="no"
			recruit="Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian Skirmisher,Saurian Augur"
			resting="yes"
			save_id="KnightKunibert1"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="1"
			team_name="west"
			terrain_liked="Hh, Ha, Ds, Ss"
			type="Drake Flare"
			undead_variation="drake"
			underlying_id="1"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^West"
			village_gold="2"
			x="17"
			y="10"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[abilities]
				[leadership]
					affect_self="no"
					cumulative="no"
#textdomain wesnoth
					description=_ "Leadership:
This unit can lead our own units that are next to it, making them fight better.

Adjacent own units of lower level will do more damage in battle. When a unit adjacent to, of a lower level than, and on the same side as a unit with Leadership engages in combat, its attacks do 25% more damage times the difference in their levels."
					female_name=_ "female^leadership"
					id="leadership"
					name=_ "leadership"
					value="50"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="0"
						[/filter]
					[/affect_adjacent]
				[/leadership]
				[leadership]
					affect_self="no"
					cumulative="no"
					id="leadership"
					value="25"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="1"
						[/filter]
					[/affect_adjacent]
				[/leadership]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="8"
#textdomain wesnoth-units
				description=_ "sword"
				icon="attacks/scimitar.png"
				name="sword"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="6"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="4"
				range="ranged"
				type="fire"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Sky Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Drake Glider-3"
			image="units/drakes/glider.png"
			language_name=_ "Drake Glider"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="30"
			max_moves="9"
			movement="8"
			movement_type="drakefly"
			moves="9"
			name="Verasp"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Drake Glider"
			undead_variation="drake"
			underlying_id="3"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="40"
			y="16"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="9"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="9"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="22"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="24"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/glider-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="slam"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="club.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/glider-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/glider-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/glider-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/glider-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/glider-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/glider-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/glider-die-7.png"
				[/frame]
				[frame]
					begin="1050"
					end="1200"
					image="units/drakes/glider-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/glider-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="27"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="5"
			facing="s"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="35"
			id="Saurian Augur-8"
			image="units/saurians/oracle.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Oracle"
			level="2"
			max_attacks="1"
			max_experience="84"
			max_hitpoints="35"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Kris"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Oracle"
			undead_variation="saurian"
			underlying_id="8"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="30"
			y="5"
			zoc="yes"
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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]
			[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]
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/oracle-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/oracle.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/oracle-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/oracle-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/oracle-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/oracle-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/oracle-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/oracle-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/oracle-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/oracle-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/oracle-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/oracle.png"
				[/frame]
			[/healing_anim]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="3"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="8"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/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="Inferno Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="35"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="se"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="70"
			id="Drake Burner-16"
			image="units/drakes/fire.png"
#textdomain wesnoth-units
			language_name=_ "Fire Drake"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="70"
			max_moves="5"
			movement="5"
			movement_type="drakefly"
			moves="5"
			name="Verkin"
			profile="portraits/drakes/burner.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Fire Drake"
			undead_variation="drake"
			underlying_id="16"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="29"
			y="6"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="40"
				impact="80"
				pierce="110"
			[/resistance]
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="12"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="12"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="25"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="27"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/fire.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/fire.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/fire-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/fire.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="claws"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-100"
					image="units/drakes/fire-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/fire-attack-close.png"
						sound="claws.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/fire-attack-close.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/fire-defend.png"
				[/frame]
				[frame]
					begin="100"
					end="175"
					image="units/drakes/fire-flying.png"
				[/frame]
				[frame]
					begin="175"
					end="200"
					image="units/drakes/fire.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/fire-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/fire-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/fire-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/fire-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/fire-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/fire-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/fire-die-7.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/fire.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/fire-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/fire-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/fire-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/fire.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/fire-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/fire.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/fire-flying.png"
				[/frame]
			[/standing_anim]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "claws"
				icon="attacks/claws-drake.png"
				name="claws"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="7"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="5"
				range="ranged"
				type="fire"
			[/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="Sky Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="35"
			id="Drake Glider-24"
			image="units/drakes/glider.png"
#textdomain wesnoth-units
			language_name=_ "Drake Glider"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="35"
			max_moves="9"
			movement="8"
			movement_type="drakefly"
			moves="9"
			name="Mor"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Drake Glider"
			undead_variation="drake"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="24"
			y="13"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="9"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="9"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="22"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="24"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/glider-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="slam"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="club.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/glider-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/glider-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/glider-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/glider-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/glider-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/glider-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/glider-die-7.png"
				[/frame]
				[frame]
					begin="1050"
					end="1200"
					image="units/drakes/glider-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/glider-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-26"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Stexanix"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="22"
			y="5"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-27"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Xirizi"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="27"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="23"
			y="7"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Saurian Oracle,Saurian Soothsayer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="28"
			id="Saurian Augur-30"
			image="units/saurians/augur.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Augur"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="28"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Nax"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Augur"
			undead_variation="saurian"
			underlying_id="30"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			x="17"
			y="9"
			zoc="yes"
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/augur-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/augur-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/augur-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/augur-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/augur-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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="5"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Saurian Oracle,Saurian Soothsayer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="21"
			id="Saurian Augur-32"
			image="units/saurians/augur.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Augur"
			level="1"
			max_attacks="1"
			max_experience="15"
			max_hitpoints="21"
			max_moves="7"
			movement="6"
			movement_type="lizard"
			moves="7"
			name="Sklik"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Augur"
			undead_variation="saurian"
			underlying_id="32"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			x="11"
			y="11"
			zoc="yes"
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/augur-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/augur-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/augur-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/augur-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/augur-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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/staff-magic.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-33"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Zzalkzs"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="11"
			y="12"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Drake Flameheart"
			alignment="lawful"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="1"
			controller="human"
			cost="35"
			current_player="KnightKunibert"
			die_sound="drake-die.ogg"
			experience="0"
			facing="ne"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="55"
			id="KnightKunibert1"
			image="units/drakes/flare.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Drake Flare"
			leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="55"
			max_moves="5"
			movement="5"
			movement_type="drakefly"
			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/drakes/burner.png"
			race="drake"
			random_leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior"
			random_traits="no"
			recruit="Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian Skirmisher,Saurian Augur"
			resting="yes"
			save_id="KnightKunibert1"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="1"
			team_name="west"
			terrain_liked="Hh, Ha, Ds, Ss"
			type="Drake Flare"
			undead_variation="drake"
			underlying_id="1"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^West"
			village_gold="2"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[abilities]
				[leadership]
					affect_self="no"
					cumulative="no"
#textdomain wesnoth
					description=_ "Leadership:
This unit can lead our own units that are next to it, making them fight better.

Adjacent own units of lower level will do more damage in battle. When a unit adjacent to, of a lower level than, and on the same side as a unit with Leadership engages in combat, its attacks do 25% more damage times the difference in their levels."
					female_name=_ "female^leadership"
					id="leadership"
					name=_ "leadership"
					value="50"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="0"
						[/filter]
					[/affect_adjacent]
				[/leadership]
				[leadership]
					affect_self="no"
					cumulative="no"
					id="leadership"
					value="25"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="1"
						[/filter]
					[/affect_adjacent]
				[/leadership]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="8"
#textdomain wesnoth-units
				description=_ "sword"
				icon="attacks/scimitar.png"
				name="sword"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="6"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="4"
				range="ranged"
				type="fire"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Sky Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Drake Glider-3"
			image="units/drakes/glider.png"
			language_name=_ "Drake Glider"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="30"
			max_moves="9"
			movement="8"
			movement_type="drakefly"
			moves="9"
			name="Verasp"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Drake Glider"
			undead_variation="drake"
			underlying_id="3"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="9"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="9"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="22"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="24"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/glider-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="slam"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="club.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/glider-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/glider-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/glider-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/glider-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/glider-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/glider-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/glider-die-7.png"
				[/frame]
				[frame]
					begin="1050"
					end="1200"
					image="units/drakes/glider-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/glider-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="27"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="5"
			facing="s"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="35"
			id="Saurian Augur-8"
			image="units/saurians/oracle.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Oracle"
			level="2"
			max_attacks="1"
			max_experience="84"
			max_hitpoints="35"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Kris"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Oracle"
			undead_variation="saurian"
			underlying_id="8"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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]
			[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]
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/oracle-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/oracle.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/oracle-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/oracle-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/oracle-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/oracle-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/oracle-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/oracle-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/oracle-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/oracle-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/oracle-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/oracle.png"
				[/frame]
			[/healing_anim]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="3"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="8"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/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="Inferno Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="35"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="se"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="70"
			id="Drake Burner-16"
			image="units/drakes/fire.png"
#textdomain wesnoth-units
			language_name=_ "Fire Drake"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="70"
			max_moves="5"
			movement="5"
			movement_type="drakefly"
			moves="5"
			name="Verkin"
			profile="portraits/drakes/burner.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Fire Drake"
			undead_variation="drake"
			underlying_id="16"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="40"
				impact="80"
				pierce="110"
			[/resistance]
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="12"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="12"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="25"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="27"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/fire.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/fire.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/fire-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/fire.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="claws"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-100"
					image="units/drakes/fire-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/fire-attack-close.png"
						sound="claws.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/fire-attack-close.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/fire-defend.png"
				[/frame]
				[frame]
					begin="100"
					end="175"
					image="units/drakes/fire-flying.png"
				[/frame]
				[frame]
					begin="175"
					end="200"
					image="units/drakes/fire.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/fire-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/fire-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/fire-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/fire-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/fire-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/fire-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/fire-die-7.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/fire.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/fire-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/fire-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/fire-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/fire.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/fire-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/fire.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/fire-flying.png"
				[/frame]
			[/standing_anim]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "claws"
				icon="attacks/claws-drake.png"
				name="claws"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="7"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="5"
				range="ranged"
				type="fire"
			[/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="Sky Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="35"
			id="Drake Glider-24"
			image="units/drakes/glider.png"
#textdomain wesnoth-units
			language_name=_ "Drake Glider"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="35"
			max_moves="9"
			movement="8"
			movement_type="drakefly"
			moves="9"
			name="Mor"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Drake Glider"
			undead_variation="drake"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="9"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="9"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="22"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="24"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/glider-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="slam"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="club.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/glider-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/glider-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/glider-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/glider-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/glider-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/glider-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/glider-die-7.png"
				[/frame]
				[frame]
					begin="1050"
					end="1200"
					image="units/drakes/glider-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/glider-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-26"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Stexanix"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-27"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Xirizi"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="27"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Saurian Oracle,Saurian Soothsayer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="28"
			id="Saurian Augur-30"
			image="units/saurians/augur.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Augur"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="28"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Nax"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Augur"
			undead_variation="saurian"
			underlying_id="30"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/augur-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/augur-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/augur-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/augur-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/augur-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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="5"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Saurian Oracle,Saurian Soothsayer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="21"
			id="Saurian Augur-32"
			image="units/saurians/augur.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Augur"
			level="1"
			max_attacks="1"
			max_experience="15"
			max_hitpoints="21"
			max_moves="7"
			movement="6"
			movement_type="lizard"
			moves="7"
			name="Sklik"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Augur"
			undead_variation="saurian"
			underlying_id="32"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/augur-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/augur-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/augur-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/augur-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/augur-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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/staff-magic.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-33"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Zzalkzs"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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]
	[/side]
	[side]
		action_bonus_count="14"
		aggression="0.5"
		allow_player="yes"
		caution="0.25"
		colour="2"
		controller="network"
		countdown_time="270000"
		current_player="singalen"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
		gold="3"
		hidden="no"
		id="singalen2"
		income="0"
		leader_value="3"
		name="singalen"
		no_leader="yes"
		number_of_possible_recruits_to_force_recruit="3.1"
		objectives=_ "Victory:
@Defeat enemy leader(s)"
		objectives_changed="yes"
		recruit="Dark Adept,Ghost,Ghoul,Skeleton,Skeleton Archer,Vampire Bat,Walking Corpse"
		recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
		save_id="singalen2"
		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,archer,fighter,scout,archer"
			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="Blood Bat"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="bat-flapping.wav"
			ellipse="misc/ellipse-nozoc"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="17"
			id="Vampire Bat-6"
			image="units/undead/bat-se-3.png"
#textdomain wesnoth-units
			language_name=_ "Vampire Bat"
			level="0"
			max_attacks="1"
			max_experience="13"
			max_hitpoints="17"
			max_moves="8"
			movement="8"
			movement_type="smallfly"
			moves="8"
			race="bats"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Vampire Bat"
			undead_variation="bat"
			underlying_id="6"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="26"
			y="8"
			zoc="no"
			[attack_anim]
				direction="s,se,sw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n,ne,nw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,sw,se"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-se-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/defend]
			[defend]
				direction="n,nw,ne"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/defend]
			[standing_anim]
				direction="s,se,sw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				direction="n,ne,nw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="40"
				cave="40"
				deep_water="40"
				flat="40"
				forest="40"
				frozen="40"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="40"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="40"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="70"
				fire="100"
				impact="120"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="blade"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Wraith,Shadow"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="20"
			die_sound="wail-long.wav"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="18"
			id="Ghost-7"
			image="units/undead/ghost-s-2.png"
#textdomain wesnoth-units
			language_name=_ "Ghost"
			level="1"
			max_attacks="1"
			max_experience="21"
			max_hitpoints="18"
			max_moves="7"
			movement="7"
			movement_type="undeadspirit"
			moves="7"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Ghost"
			underlying_id="7"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="32"
			y="4"
			zoc="yes"
			[attack_anim]
				start_time="-200"
				[filter_attack]
					name="wail"
				[/filter_attack]
				[if]
					direction="n,ne,nw"
					[missile_frame]
						begin="-300"
						end="-230"
						image="projectiles/wailprojectile-n-1.png"
						image_diagonal="projectiles/wailprojectile-ne-1.png"
					[/missile_frame]
					[missile_frame]
						begin="-230"
						end="-160"
						image="projectiles/wailprojectile-n-2.png"
						image_diagonal="projectiles/wailprojectile-ne-2.png"
					[/missile_frame]
					[missile_frame]
						begin="-160"
						end="0"
						image="projectiles/wailprojectile-n-3.png"
						image_diagonal="projectiles/wailprojectile-ne-3.png"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="40"
						image="projectiles/wailprojectile-n-4.png"
						image_diagonal="projectiles/wailprojectile-ne-4.png"
					[/missile_frame]
					[missile_frame]
						begin="40"
						end="80"
						image="projectiles/wailprojectile-n-5.png"
						image_diagonal="projectiles/wailprojectile-ne-5.png"
					[/missile_frame]
					[missile_frame]
						begin="80"
						end="120"
						image="projectiles/wailprojectile-n-6.png"
						image_diagonal="projectiles/wailprojectile-ne-6.png"
					[/missile_frame]
				[/if]
				[else]
					direction="s,se,sw"
					[missile_frame]
						begin="-300"
						end="-230"
						image="projectiles/wailprojectile-s-1.png"
						image_diagonal="projectiles/wailprojectile-se-1.png"
					[/missile_frame]
					[missile_frame]
						begin="-230"
						end="-160"
						image="projectiles/wailprojectile-s-2.png"
						image_diagonal="projectiles/wailprojectile-se-2.png"
					[/missile_frame]
					[missile_frame]
						begin="-160"
						end="0"
						image="projectiles/wailprojectile-s-3.png"
						image_diagonal="projectiles/wailprojectile-se-3.png"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="40"
						image="projectiles/wailprojectile-s-4.png"
						image_diagonal="projectiles/wailprojectile-se-4.png"
					[/missile_frame]
					[missile_frame]
						begin="40"
						end="80"
						image="projectiles/wailprojectile-s-5.png"
						image_diagonal="projectiles/wailprojectile-se-5.png"
					[/missile_frame]
					[missile_frame]
						begin="80"
						end="120"
						image="projectiles/wailprojectile-s-6.png"
						image_diagonal="projectiles/wailprojectile-se-6.png"
					[/missile_frame]
				[/else]
				[if]
					direction="s,se,sw"
					[frame]
						duration="25"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-2.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="25"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/if]
				[else]
					direction="n,ne,nw"
					[frame]
						duration="25"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-2.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="25"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				alpha="0.8~0.0:425,0.0~0.8:225"
				direction="s,se,sw"
				offset="0.0~1.0:425,0.0:225"
				start_time="-500"
				[filter_attack]
					name="touch"
				[/filter_attack]
				[frame]
					duration="25"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-s-attack-1.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-s-attack-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghost-s-attack-3.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-s-attack-2.png"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-s-attack-1.png"
				[/frame]
				[frame]
					duration="25"
					image="units/undead/ghost-s-2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				alpha="0.8~0.0:425,0.0~0.8:225"
				direction="n,ne,nw"
				offset="0.0~1.0:425,0.0:225"
				start_time="-500"
				[filter_attack]
					name="touch"
				[/filter_attack]
				[frame]
					duration="25"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-n-attack-1.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-n-attack-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghost-n-attack-3.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-n-attack-2.png"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-n-attack-1.png"
				[/frame]
				[frame]
					duration="25"
					image="units/undead/ghost-n-2.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,se,sw"
				start_time="-126"
				[if]
					alpha="0.8~0.5:126,0.5~0.8:126"
					hits="hit,kill"
					offset="0.0~-0.05:126,-0.05~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-1.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/if]
				[else]
					alpha="0.8~0.25:126,0.25~0.8:126"
					hits="miss"
					offset="0.0~-0.1:126,-0.1~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/else]
			[/defend]
			[defend]
				direction="n,ne,nw"
				start_time="-126"
				[if]
					alpha="0.8~0.5:126,0.5~0.8:126"
					hits="hit,kill"
					offset="0.0~-0.05:126,-0.05~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-1.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/if]
				[else]
					alpha="0.8~0.25:126,0.25~0.8:126"
					hits="miss"
					offset="0.0~-0.1:126,-0.1~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/else]
			[/defend]
			[standing_anim]
				alpha="0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400"
				direction="s,se,sw"
				start_time="0"
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				alpha="0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400"
				direction="n,ne,nw"
				start_time="0"
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="50"
				cave="50"
				deep_water="50"
				flat="50"
				forest="50"
				frozen="50"
				fungus="50"
				hills="50"
				impassable="50"
				mountains="50"
				reef="50"
				sand="50"
				shallow_water="50"
				swamp_water="50"
				unwalkable="50"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="1"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="1"
				reef="2"
				sand="1"
				shallow_water="2"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="50"
				cold="30"
				fire="90"
				impact="50"
				pierce="50"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "touch"
				icon="attacks/touch-undead.png"
				name="touch"
				number="3"
				range="melee"
				type="arcane"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[attack]
				damage="3"
#textdomain wesnoth-units
				description=_ "wail"
				name="wail"
				number="3"
				range="ranged"
				type="cold"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Dark Adept-10"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept.png"
#textdomain wesnoth-units
			language_name=_ "Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Vent"
			profile="portraits/humans/dark-adept.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="10"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="31"
			y="5"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="17"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Dark Adept-13"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Rassa"
			profile="portraits/humans/dark-adept+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="13"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="31"
			y="7"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept+female-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept+female-defend-2.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/undead-necromancers/adept+female-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/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^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Dark Adept-17"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="27"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Ysa"
			profile="portraits/humans/dark-adept+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="27"
			y="16"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept+female-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept+female-defend-2.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/undead-necromancers/adept+female-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "female^quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Bone Shooter"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="skeleton-die-1.ogg,skeleton-die-2.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="31"
			id="Skeleton Archer-23"
			image="units/undead-skeletal/archer.png"
#textdomain wesnoth-units
			language_name=_ "Skeleton Archer"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="31"
			max_moves="5"
			movement="5"
			movement_type="undeadfoot"
			moves="5"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Skeleton Archer"
			underlying_id="23"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="27"
			y="5"
			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="-250"
						image="units/undead-skeletal/archer-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/undead-skeletal/archer-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/undead-skeletal/archer-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="fist"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-100"
					image="units/undead-skeletal/archer.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/undead-skeletal/archer-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/undead-skeletal/archer-attack.png"
						sound="fist.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-die2-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die2-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die2-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die2-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die2-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die2-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die2-7.png"
				[/frame]
			[/death]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-die-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die-7.png"
				[/frame]
				[frame]
					begin="700"
					end="800"
					image="units/undead-skeletal/archer-die-8.png"
				[/frame]
				[frame]
					begin="800"
					end="900"
					image="units/undead-skeletal/archer-die-9.png"
				[/frame]
				[frame]
					begin="900"
					end="1000"
					image="units/undead-skeletal/archer-die-10.png"
				[/frame]
				[frame]
					begin="1000"
					end="1100"
					image="units/undead-skeletal/archer-die-11.png"
				[/frame]
				[frame]
					begin="1100"
					end="1200"
					image="units/undead-skeletal/archer-die-12.png"
				[/frame]
				[frame]
					begin="1200"
					end="1300"
					image="units/undead-skeletal/archer-die-13.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-skeletal/archer.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/archer-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-skeletal/archer-defend.png"
						sound="skeleton-hit-1.ogg,skeleton-hit-2.ogg,skeleton-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-skeletal/archer-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/defend]
			[idle_anim]
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-idle-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-idle-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-idle-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-idle-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-idle-5.png"
				[/frame]
				[frame]
					begin="500"
					end="700"
					image="units/undead-skeletal/archer-idle-6.png"
				[/frame]
				[frame]
					begin="700"
					end="800"
					image="units/undead-skeletal/archer-idle-7.png"
				[/frame]
				[frame]
					begin="800"
					end="900"
					image="units/undead-skeletal/archer-idle-8.png"
				[/frame]
				[frame]
					begin="900"
					end="1000"
					image="units/undead-skeletal/archer-idle-9.png"
				[/frame]
				[frame]
					begin="1000"
					end="1100"
					image="units/undead-skeletal/archer-idle-10.png"
				[/frame]
				[frame]
					begin="1100"
					end="1200"
					image="units/undead-skeletal/archer-idle-11.png"
				[/frame]
				[frame]
					begin="1200"
					end="1400"
					image="units/undead-skeletal/archer-idle-12.png"
				[/frame]
				[frame]
					begin="1400"
					end="1500"
					image="units/undead-skeletal/archer-idle-13.png"
				[/frame]
				[frame]
					begin="1500"
					end="1600"
					image="units/undead-skeletal/archer-idle-14.png"
				[/frame]
			[/idle_anim]
			[recruit_anim]
				[frame]
					alpha="0~1:300"
					begin="-200"
					end="100"
					image="units/undead-skeletal/archer-die2-7.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die2-6.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die2-5.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die2-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die2-3.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die2-2.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die2-1.png"
				[/frame]
			[/recruit_anim]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="3"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="150"
				blade="60"
				cold="40"
				fire="120"
				impact="120"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^submerge"
					female_name_inactive=_ "female^submerge"
					id="submerge"
					name=_ "submerge"
					name_inactive=_ "submerge"
					[filter_self]
						[filter_location]
							terrain="Wo"
						[/filter_location]
					[/filter_self]
				[/hides]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="3"
#textdomain wesnoth-units
				description=_ "fist"
				icon="attacks/fist-skeletal.png"
				name="fist"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="6"
				description=_ "bow"
				icon="attacks/bow-orcish.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Blood Bat"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="bat-flapping.wav"
			ellipse="misc/ellipse-nozoc"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="15"
			id="Vampire Bat-25"
			image="units/undead/bat-se-3.png"
#textdomain wesnoth-units
			language_name=_ "Vampire Bat"
			level="0"
			max_attacks="1"
			max_experience="13"
			max_hitpoints="15"
			max_moves="9"
			movement="8"
			movement_type="smallfly"
			moves="9"
			race="bats"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Vampire Bat"
			undead_variation="bat"
			underlying_id="25"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="39"
			y="15"
			zoc="no"
			[attack_anim]
				direction="s,se,sw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n,ne,nw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,sw,se"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-se-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/defend]
			[defend]
				direction="n,nw,ne"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/defend]
			[standing_anim]
				direction="s,se,sw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				direction="n,ne,nw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="40"
				cave="40"
				deep_water="40"
				flat="40"
				forest="40"
				frozen="40"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="40"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="40"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="70"
				fire="100"
				impact="120"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="blade"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Revenant,Deathblade"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="skeleton-die-1.ogg,skeleton-die-2.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Skeleton-29"
			image="units/undead-skeletal/skeleton.png"
#textdomain wesnoth-units
			language_name=_ "Skeleton"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="undeadfoot"
			moves="5"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Skeleton"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="32"
			y="3"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="axe"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/undead-skeletal/skeleton-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/undead-skeletal/skeleton-attack-2.png"
						sound="axe.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/undead-skeletal/skeleton-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-attack-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/undead-skeletal/skeleton-attack-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead-skeletal/skeleton-attack-5.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/skeleton-dying-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/skeleton-dying-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/skeleton-dying-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/skeleton-dying-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/skeleton-dying-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/skeleton-dying-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/skeleton-dying-7.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-skeletal/skeleton-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-skeletal/skeleton-defend-2.png"
						sound="skeleton-hit-1.ogg,skeleton-hit-2.ogg,skeleton-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-skeletal/skeleton-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-skeletal/skeleton-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/undead-skeletal/skeleton-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
			[/idle_anim]
			[recruit_anim]
				[frame]
					alpha="0~1:300"
					begin="-200"
					end="100"
					image="units/undead-skeletal/skeleton-dying-7.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/skeleton-dying-6.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/skeleton-dying-5.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/skeleton-dying-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/skeleton-dying-3.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/skeleton-dying-2.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/skeleton-dying-1.png"
				[/frame]
			[/recruit_anim]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="3"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="150"
				blade="60"
				cold="40"
				fire="120"
				impact="120"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^submerge"
					female_name_inactive=_ "female^submerge"
					id="submerge"
					name=_ "submerge"
					name_inactive=_ "submerge"
					[filter_self]
						[filter_location]
							terrain="Wo"
						[/filter_location]
					[/filter_self]
				[/hides]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "axe"
				icon="attacks/axe-undead.png"
				name="axe"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Dark Adept-31"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept.png"
#textdomain wesnoth-units
			language_name=_ "Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="27"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Veoran"
			profile="portraits/humans/dark-adept.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="31"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="31"
			y="6"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Necrophage"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="ghoul-hit.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Ghoul-34"
			image="units/undead/ghoul.png"
#textdomain wesnoth-units
			language_name=_ "Ghoul"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="gruefoot"
			moves="5"
			profile="portraits/undead/ghoul.png"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Ghoul"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="31"
			y="8"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="claws"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/undead/ghoul.png"
				[/frame]
				[frame]
					begin="-200"
					end="-125"
					image="units/undead/ghoul-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-125"
						end="-50"
						image="units/undead/ghoul-attack-2.png"
						sound="claws.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-125"
						end="-50"
						image="units/undead/ghoul-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[if]
					hits="hit"
					poisoned_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[poisoned_sound_frame]
						duration="100"
						sound="poison.ogg"
					[/poisoned_sound_frame]
				[/if]
				[frame]
					begin="-50"
					end="50"
					image="units/undead/ghoul-attack-3.png"
				[/frame]
				[frame]
					begin="50"
					end="125"
					image="units/undead/ghoul-attack-4.png"
				[/frame]
				[frame]
					begin="125"
					end="200"
					image="units/undead/ghoul.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead/ghoul-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghoul-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/ghoul-defend-2.png"
						sound="ghoul-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/ghoul-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/ghoul-defend-1.png"
				[/frame]
			[/defend]
			[trait]
				availability="musthave"
#textdomain wesnoth
				description=_ "Fights normally during unfavorable times of day/night"
				female_name=_ "female^fearless"
				id="fearless"
				male_name=_ "fearless"
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="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="80"
				blade="90"
				cold="60"
				fire="90"
				impact="100"
				pierce="70"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "claws"
				icon="attacks/claws-undead.png"
				name="claws"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[poison]
#textdomain wesnoth
						description=_ "Poison:
This attack poisons living targets. Poisoned units lose 8 HP every turn until they are cured or are reduced to 1 HP. Poison can not, of itself, kill a unit."
						id="poison"
						name=_ "poison"
					[/poison]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
				[trait]
					availability="musthave"
					description=_ "Fights normally during unfavorable times of day/night"
					female_name=_ "female^fearless"
					id="fearless"
					male_name=_ "fearless"
					name=_ "fearless"
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Blood Bat"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="bat-flapping.wav"
			ellipse="misc/ellipse-nozoc"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="17"
			id="Vampire Bat-6"
			image="units/undead/bat-se-3.png"
#textdomain wesnoth-units
			language_name=_ "Vampire Bat"
			level="0"
			max_attacks="1"
			max_experience="13"
			max_hitpoints="17"
			max_moves="8"
			movement="8"
			movement_type="smallfly"
			moves="8"
			race="bats"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Vampire Bat"
			undead_variation="bat"
			underlying_id="6"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="no"
			[attack_anim]
				direction="s,se,sw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n,ne,nw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,sw,se"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-se-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/defend]
			[defend]
				direction="n,nw,ne"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/defend]
			[standing_anim]
				direction="s,se,sw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				direction="n,ne,nw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="40"
				cave="40"
				deep_water="40"
				flat="40"
				forest="40"
				frozen="40"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="40"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="40"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="70"
				fire="100"
				impact="120"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="blade"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Wraith,Shadow"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="20"
			die_sound="wail-long.wav"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="18"
			id="Ghost-7"
			image="units/undead/ghost-s-2.png"
#textdomain wesnoth-units
			language_name=_ "Ghost"
			level="1"
			max_attacks="1"
			max_experience="21"
			max_hitpoints="18"
			max_moves="7"
			movement="7"
			movement_type="undeadspirit"
			moves="7"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Ghost"
			underlying_id="7"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				start_time="-200"
				[filter_attack]
					name="wail"
				[/filter_attack]
				[if]
					direction="n,ne,nw"
					[missile_frame]
						begin="-300"
						end="-230"
						image="projectiles/wailprojectile-n-1.png"
						image_diagonal="projectiles/wailprojectile-ne-1.png"
					[/missile_frame]
					[missile_frame]
						begin="-230"
						end="-160"
						image="projectiles/wailprojectile-n-2.png"
						image_diagonal="projectiles/wailprojectile-ne-2.png"
					[/missile_frame]
					[missile_frame]
						begin="-160"
						end="0"
						image="projectiles/wailprojectile-n-3.png"
						image_diagonal="projectiles/wailprojectile-ne-3.png"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="40"
						image="projectiles/wailprojectile-n-4.png"
						image_diagonal="projectiles/wailprojectile-ne-4.png"
					[/missile_frame]
					[missile_frame]
						begin="40"
						end="80"
						image="projectiles/wailprojectile-n-5.png"
						image_diagonal="projectiles/wailprojectile-ne-5.png"
					[/missile_frame]
					[missile_frame]
						begin="80"
						end="120"
						image="projectiles/wailprojectile-n-6.png"
						image_diagonal="projectiles/wailprojectile-ne-6.png"
					[/missile_frame]
				[/if]
				[else]
					direction="s,se,sw"
					[missile_frame]
						begin="-300"
						end="-230"
						image="projectiles/wailprojectile-s-1.png"
						image_diagonal="projectiles/wailprojectile-se-1.png"
					[/missile_frame]
					[missile_frame]
						begin="-230"
						end="-160"
						image="projectiles/wailprojectile-s-2.png"
						image_diagonal="projectiles/wailprojectile-se-2.png"
					[/missile_frame]
					[missile_frame]
						begin="-160"
						end="0"
						image="projectiles/wailprojectile-s-3.png"
						image_diagonal="projectiles/wailprojectile-se-3.png"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="40"
						image="projectiles/wailprojectile-s-4.png"
						image_diagonal="projectiles/wailprojectile-se-4.png"
					[/missile_frame]
					[missile_frame]
						begin="40"
						end="80"
						image="projectiles/wailprojectile-s-5.png"
						image_diagonal="projectiles/wailprojectile-se-5.png"
					[/missile_frame]
					[missile_frame]
						begin="80"
						end="120"
						image="projectiles/wailprojectile-s-6.png"
						image_diagonal="projectiles/wailprojectile-se-6.png"
					[/missile_frame]
				[/else]
				[if]
					direction="s,se,sw"
					[frame]
						duration="25"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-2.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="25"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/if]
				[else]
					direction="n,ne,nw"
					[frame]
						duration="25"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-2.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="25"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				alpha="0.8~0.0:425,0.0~0.8:225"
				direction="s,se,sw"
				offset="0.0~1.0:425,0.0:225"
				start_time="-500"
				[filter_attack]
					name="touch"
				[/filter_attack]
				[frame]
					duration="25"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-s-attack-1.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-s-attack-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghost-s-attack-3.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-s-attack-2.png"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-s-attack-1.png"
				[/frame]
				[frame]
					duration="25"
					image="units/undead/ghost-s-2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				alpha="0.8~0.0:425,0.0~0.8:225"
				direction="n,ne,nw"
				offset="0.0~1.0:425,0.0:225"
				start_time="-500"
				[filter_attack]
					name="touch"
				[/filter_attack]
				[frame]
					duration="25"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-n-attack-1.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-n-attack-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghost-n-attack-3.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-n-attack-2.png"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-n-attack-1.png"
				[/frame]
				[frame]
					duration="25"
					image="units/undead/ghost-n-2.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,se,sw"
				start_time="-126"
				[if]
					alpha="0.8~0.5:126,0.5~0.8:126"
					hits="hit,kill"
					offset="0.0~-0.05:126,-0.05~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-1.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/if]
				[else]
					alpha="0.8~0.25:126,0.25~0.8:126"
					hits="miss"
					offset="0.0~-0.1:126,-0.1~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/else]
			[/defend]
			[defend]
				direction="n,ne,nw"
				start_time="-126"
				[if]
					alpha="0.8~0.5:126,0.5~0.8:126"
					hits="hit,kill"
					offset="0.0~-0.05:126,-0.05~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-1.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/if]
				[else]
					alpha="0.8~0.25:126,0.25~0.8:126"
					hits="miss"
					offset="0.0~-0.1:126,-0.1~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/else]
			[/defend]
			[standing_anim]
				alpha="0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400"
				direction="s,se,sw"
				start_time="0"
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				alpha="0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400"
				direction="n,ne,nw"
				start_time="0"
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="50"
				cave="50"
				deep_water="50"
				flat="50"
				forest="50"
				frozen="50"
				fungus="50"
				hills="50"
				impassable="50"
				mountains="50"
				reef="50"
				sand="50"
				shallow_water="50"
				swamp_water="50"
				unwalkable="50"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="1"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="1"
				reef="2"
				sand="1"
				shallow_water="2"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="50"
				cold="30"
				fire="90"
				impact="50"
				pierce="50"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "touch"
				icon="attacks/touch-undead.png"
				name="touch"
				number="3"
				range="melee"
				type="arcane"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[attack]
				damage="3"
#textdomain wesnoth-units
				description=_ "wail"
				name="wail"
				number="3"
				range="ranged"
				type="cold"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Dark Adept-10"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept.png"
#textdomain wesnoth-units
			language_name=_ "Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Vent"
			profile="portraits/humans/dark-adept.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="10"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="17"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Dark Adept-13"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Rassa"
			profile="portraits/humans/dark-adept+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="13"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept+female-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept+female-defend-2.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/undead-necromancers/adept+female-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/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^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Dark Adept-17"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="27"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Ysa"
			profile="portraits/humans/dark-adept+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept+female-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept+female-defend-2.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/undead-necromancers/adept+female-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "female^quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Bone Shooter"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="skeleton-die-1.ogg,skeleton-die-2.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="31"
			id="Skeleton Archer-23"
			image="units/undead-skeletal/archer.png"
#textdomain wesnoth-units
			language_name=_ "Skeleton Archer"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="31"
			max_moves="5"
			movement="5"
			movement_type="undeadfoot"
			moves="5"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Skeleton Archer"
			underlying_id="23"
			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]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/undead-skeletal/archer-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/undead-skeletal/archer-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/undead-skeletal/archer-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="fist"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-100"
					image="units/undead-skeletal/archer.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/undead-skeletal/archer-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/undead-skeletal/archer-attack.png"
						sound="fist.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-die2-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die2-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die2-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die2-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die2-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die2-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die2-7.png"
				[/frame]
			[/death]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-die-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die-7.png"
				[/frame]
				[frame]
					begin="700"
					end="800"
					image="units/undead-skeletal/archer-die-8.png"
				[/frame]
				[frame]
					begin="800"
					end="900"
					image="units/undead-skeletal/archer-die-9.png"
				[/frame]
				[frame]
					begin="900"
					end="1000"
					image="units/undead-skeletal/archer-die-10.png"
				[/frame]
				[frame]
					begin="1000"
					end="1100"
					image="units/undead-skeletal/archer-die-11.png"
				[/frame]
				[frame]
					begin="1100"
					end="1200"
					image="units/undead-skeletal/archer-die-12.png"
				[/frame]
				[frame]
					begin="1200"
					end="1300"
					image="units/undead-skeletal/archer-die-13.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-skeletal/archer.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/archer-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-skeletal/archer-defend.png"
						sound="skeleton-hit-1.ogg,skeleton-hit-2.ogg,skeleton-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-skeletal/archer-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/defend]
			[idle_anim]
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-idle-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-idle-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-idle-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-idle-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-idle-5.png"
				[/frame]
				[frame]
					begin="500"
					end="700"
					image="units/undead-skeletal/archer-idle-6.png"
				[/frame]
				[frame]
					begin="700"
					end="800"
					image="units/undead-skeletal/archer-idle-7.png"
				[/frame]
				[frame]
					begin="800"
					end="900"
					image="units/undead-skeletal/archer-idle-8.png"
				[/frame]
				[frame]
					begin="900"
					end="1000"
					image="units/undead-skeletal/archer-idle-9.png"
				[/frame]
				[frame]
					begin="1000"
					end="1100"
					image="units/undead-skeletal/archer-idle-10.png"
				[/frame]
				[frame]
					begin="1100"
					end="1200"
					image="units/undead-skeletal/archer-idle-11.png"
				[/frame]
				[frame]
					begin="1200"
					end="1400"
					image="units/undead-skeletal/archer-idle-12.png"
				[/frame]
				[frame]
					begin="1400"
					end="1500"
					image="units/undead-skeletal/archer-idle-13.png"
				[/frame]
				[frame]
					begin="1500"
					end="1600"
					image="units/undead-skeletal/archer-idle-14.png"
				[/frame]
			[/idle_anim]
			[recruit_anim]
				[frame]
					alpha="0~1:300"
					begin="-200"
					end="100"
					image="units/undead-skeletal/archer-die2-7.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die2-6.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die2-5.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die2-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die2-3.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die2-2.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die2-1.png"
				[/frame]
			[/recruit_anim]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="3"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="150"
				blade="60"
				cold="40"
				fire="120"
				impact="120"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^submerge"
					female_name_inactive=_ "female^submerge"
					id="submerge"
					name=_ "submerge"
					name_inactive=_ "submerge"
					[filter_self]
						[filter_location]
							terrain="Wo"
						[/filter_location]
					[/filter_self]
				[/hides]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="3"
#textdomain wesnoth-units
				description=_ "fist"
				icon="attacks/fist-skeletal.png"
				name="fist"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="6"
				description=_ "bow"
				icon="attacks/bow-orcish.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Blood Bat"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="bat-flapping.wav"
			ellipse="misc/ellipse-nozoc"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="15"
			id="Vampire Bat-25"
			image="units/undead/bat-se-3.png"
#textdomain wesnoth-units
			language_name=_ "Vampire Bat"
			level="0"
			max_attacks="1"
			max_experience="13"
			max_hitpoints="15"
			max_moves="9"
			movement="8"
			movement_type="smallfly"
			moves="9"
			race="bats"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Vampire Bat"
			undead_variation="bat"
			underlying_id="25"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="no"
			[attack_anim]
				direction="s,se,sw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n,ne,nw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,sw,se"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-se-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/defend]
			[defend]
				direction="n,nw,ne"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/defend]
			[standing_anim]
				direction="s,se,sw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				direction="n,ne,nw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="40"
				cave="40"
				deep_water="40"
				flat="40"
				forest="40"
				frozen="40"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="40"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="40"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="70"
				fire="100"
				impact="120"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="blade"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Revenant,Deathblade"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="skeleton-die-1.ogg,skeleton-die-2.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Skeleton-29"
			image="units/undead-skeletal/skeleton.png"
#textdomain wesnoth-units
			language_name=_ "Skeleton"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="undeadfoot"
			moves="5"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Skeleton"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="axe"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/undead-skeletal/skeleton-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/undead-skeletal/skeleton-attack-2.png"
						sound="axe.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/undead-skeletal/skeleton-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-attack-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/undead-skeletal/skeleton-attack-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead-skeletal/skeleton-attack-5.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/skeleton-dying-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/skeleton-dying-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/skeleton-dying-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/skeleton-dying-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/skeleton-dying-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/skeleton-dying-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/skeleton-dying-7.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-skeletal/skeleton-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-skeletal/skeleton-defend-2.png"
						sound="skeleton-hit-1.ogg,skeleton-hit-2.ogg,skeleton-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-skeletal/skeleton-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-skeletal/skeleton-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/undead-skeletal/skeleton-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
			[/idle_anim]
			[recruit_anim]
				[frame]
					alpha="0~1:300"
					begin="-200"
					end="100"
					image="units/undead-skeletal/skeleton-dying-7.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/skeleton-dying-6.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/skeleton-dying-5.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/skeleton-dying-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/skeleton-dying-3.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/skeleton-dying-2.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/skeleton-dying-1.png"
				[/frame]
			[/recruit_anim]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="3"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="150"
				blade="60"
				cold="40"
				fire="120"
				impact="120"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^submerge"
					female_name_inactive=_ "female^submerge"
					id="submerge"
					name=_ "submerge"
					name_inactive=_ "submerge"
					[filter_self]
						[filter_location]
							terrain="Wo"
						[/filter_location]
					[/filter_self]
				[/hides]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "axe"
				icon="attacks/axe-undead.png"
				name="axe"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Dark Adept-31"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept.png"
#textdomain wesnoth-units
			language_name=_ "Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="27"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Veoran"
			profile="portraits/humans/dark-adept.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="31"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Necrophage"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="ghoul-hit.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Ghoul-34"
			image="units/undead/ghoul.png"
#textdomain wesnoth-units
			language_name=_ "Ghoul"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="gruefoot"
			moves="5"
			profile="portraits/undead/ghoul.png"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Ghoul"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="claws"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/undead/ghoul.png"
				[/frame]
				[frame]
					begin="-200"
					end="-125"
					image="units/undead/ghoul-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-125"
						end="-50"
						image="units/undead/ghoul-attack-2.png"
						sound="claws.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-125"
						end="-50"
						image="units/undead/ghoul-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[if]
					hits="hit"
					poisoned_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[poisoned_sound_frame]
						duration="100"
						sound="poison.ogg"
					[/poisoned_sound_frame]
				[/if]
				[frame]
					begin="-50"
					end="50"
					image="units/undead/ghoul-attack-3.png"
				[/frame]
				[frame]
					begin="50"
					end="125"
					image="units/undead/ghoul-attack-4.png"
				[/frame]
				[frame]
					begin="125"
					end="200"
					image="units/undead/ghoul.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead/ghoul-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghoul-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/ghoul-defend-2.png"
						sound="ghoul-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/ghoul-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/ghoul-defend-1.png"
				[/frame]
			[/defend]
			[trait]
				availability="musthave"
#textdomain wesnoth
				description=_ "Fights normally during unfavorable times of day/night"
				female_name=_ "female^fearless"
				id="fearless"
				male_name=_ "fearless"
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="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="80"
				blade="90"
				cold="60"
				fire="90"
				impact="100"
				pierce="70"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "claws"
				icon="attacks/claws-undead.png"
				name="claws"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[poison]
#textdomain wesnoth
						description=_ "Poison:
This attack poisons living targets. Poisoned units lose 8 HP every turn until they are cured or are reduced to 1 HP. Poison can not, of itself, kill a unit."
						id="poison"
						name=_ "poison"
					[/poison]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
				[trait]
					availability="musthave"
					description=_ "Fights normally during unfavorable times of day/night"
					female_name=_ "female^fearless"
					id="fearless"
					male_name=_ "fearless"
					name=_ "fearless"
				[/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="6"
		side_number="1"
		turn_number="11"
	[/variables]
	[player]
		can_recruit="Drake Burner,Drake Clasher,Drake Fighter,Drake Glider,Saurian Augur,Saurian Skirmisher"
		gold="-1"
		gold_add="no"
		name="KnightKunibert"
		save_id="KnightKunibert1"
		[unit]
			advances_to="Drake Flameheart"
			alignment="lawful"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="1"
			controller="human"
			cost="35"
			current_player="KnightKunibert"
			die_sound="drake-die.ogg"
			experience="0"
			facing="ne"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="55"
			id="KnightKunibert1"
			image="units/drakes/flare.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Drake Flare"
			leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="55"
			max_moves="5"
			movement="5"
			movement_type="drakefly"
			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/drakes/burner.png"
			race="drake"
			random_leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior"
			random_traits="no"
			recruit="Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian Skirmisher,Saurian Augur"
			resting="yes"
			save_id="KnightKunibert1"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="1"
			team_name="west"
			terrain_liked="Hh, Ha, Ds, Ss"
			type="Drake Flare"
			undead_variation="drake"
			underlying_id="1"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^West"
			village_gold="2"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[abilities]
				[leadership]
					affect_self="no"
					cumulative="no"
#textdomain wesnoth
					description=_ "Leadership:
This unit can lead our own units that are next to it, making them fight better.

Adjacent own units of lower level will do more damage in battle. When a unit adjacent to, of a lower level than, and on the same side as a unit with Leadership engages in combat, its attacks do 25% more damage times the difference in their levels."
					female_name=_ "female^leadership"
					id="leadership"
					name=_ "leadership"
					value="50"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="0"
						[/filter]
					[/affect_adjacent]
				[/leadership]
				[leadership]
					affect_self="no"
					cumulative="no"
					id="leadership"
					value="25"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="1"
						[/filter]
					[/affect_adjacent]
				[/leadership]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="8"
#textdomain wesnoth-units
				description=_ "sword"
				icon="attacks/scimitar.png"
				name="sword"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="6"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="4"
				range="ranged"
				type="fire"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Sky Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Drake Glider-3"
			image="units/drakes/glider.png"
			language_name=_ "Drake Glider"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="30"
			max_moves="9"
			movement="8"
			movement_type="drakefly"
			moves="9"
			name="Verasp"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Drake Glider"
			undead_variation="drake"
			underlying_id="3"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="9"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="9"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="22"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="24"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/glider-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="slam"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="club.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/glider-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/glider-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/glider-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/glider-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/glider-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/glider-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/glider-die-7.png"
				[/frame]
				[frame]
					begin="1050"
					end="1200"
					image="units/drakes/glider-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/glider-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="27"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="5"
			facing="s"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="35"
			id="Saurian Augur-8"
			image="units/saurians/oracle.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Oracle"
			level="2"
			max_attacks="1"
			max_experience="84"
			max_hitpoints="35"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Kris"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Oracle"
			undead_variation="saurian"
			underlying_id="8"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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]
			[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]
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/oracle-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/oracle.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/oracle-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/oracle-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/oracle-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/oracle-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/oracle-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/oracle-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/oracle-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/oracle-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/oracle-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/oracle-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/oracle-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/oracle-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/oracle.png"
				[/frame]
			[/healing_anim]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="3"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="8"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/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="Inferno Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="35"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="se"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="70"
			id="Drake Burner-16"
			image="units/drakes/fire.png"
#textdomain wesnoth-units
			language_name=_ "Fire Drake"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="70"
			max_moves="5"
			movement="5"
			movement_type="drakefly"
			moves="5"
			name="Verkin"
			profile="portraits/drakes/burner.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Fire Drake"
			undead_variation="drake"
			underlying_id="16"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="40"
				impact="80"
				pierce="110"
			[/resistance]
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="12"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="12"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="25"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="27"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/fire.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/fire.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/fire-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/fire.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="claws"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-100"
					image="units/drakes/fire-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/fire-attack-close.png"
						sound="claws.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/fire-attack-close.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/fire-defend.png"
				[/frame]
				[frame]
					begin="100"
					end="175"
					image="units/drakes/fire-flying.png"
				[/frame]
				[frame]
					begin="175"
					end="200"
					image="units/drakes/fire.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/fire-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/fire-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/fire-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/fire-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/fire-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/fire-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/fire-die-7.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/fire.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/fire-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/fire-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/fire-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/fire.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/fire-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/fire.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/fire-flying.png"
				[/frame]
			[/standing_anim]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
				description=_ "claws"
				icon="attacks/claws-drake.png"
				name="claws"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="7"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="5"
				range="ranged"
				type="fire"
			[/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="Sky Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="35"
			id="Drake Glider-24"
			image="units/drakes/glider.png"
#textdomain wesnoth-units
			language_name=_ "Drake Glider"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="35"
			max_moves="9"
			movement="8"
			movement_type="drakefly"
			moves="9"
			name="Mor"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Drake Glider"
			undead_variation="drake"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="fire breath"
				[/filter_attack]
				[if]
					direction="n"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80"
						halo_x="9"
						halo_y="-34"
					[/missile_frame]
				[/if]
				[else]
					direction="s"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80"
						halo_x="9"
						halo_y="15"
					[/missile_frame]
				[/else]
				[else]
					direction="ne,nw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80"
						halo_x="22"
						halo_y="-22"
					[/missile_frame]
				[/else]
				[else]
					direction="se,sw"
					[missile_frame]
						begin="-400"
						end="100"
						halo="projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80"
						halo_x="24"
						halo_y="10"
					[/missile_frame]
				[/else]
				[if]
					hits="no"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-400"
						end="-350"
						image="units/drakes/glider.png"
						sound="flame-big.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-350"
					end="-150"
					image="units/drakes/glider-attack-ranged.png"
				[/frame]
				[frame]
					begin="-150"
					end="0"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="slam"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="club.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/drakes/glider-attack-close2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="100"
					image="units/drakes/glider-flying.png"
				[/frame]
				[frame]
					begin="100"
					end="150"
					image="units/drakes/glider-attack-close1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/drakes/glider.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="130"
					image="units/drakes/glider-die-1.png"
				[/frame]
				[frame]
					begin="130"
					end="320"
					image="units/drakes/glider-die-2.png"
				[/frame]
				[frame]
					begin="320"
					end="450"
					image="units/drakes/glider-die-3.png"
				[/frame]
				[frame]
					begin="450"
					end="600"
					image="units/drakes/glider-die-4.png"
				[/frame]
				[frame]
					begin="600"
					end="750"
					image="units/drakes/glider-die-5.png"
				[/frame]
				[frame]
					begin="750"
					end="900"
					image="units/drakes/glider-die-6.png"
				[/frame]
				[frame]
					begin="900"
					end="1050"
					image="units/drakes/glider-die-7.png"
				[/frame]
				[frame]
					begin="1050"
					end="1200"
					image="units/drakes/glider-die-8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
				[frame]
					duration="100"
					image="units/drakes/glider-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
						sound="drake-hit-1.ogg,drake-hit-2.ogg,drake-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/drakes/glider-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/drakes/glider.png"
				[/frame]
			[/defend]
			[movement_anim]
				[frame]
					begin="0"
					end="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/movement_anim]
			[standing_anim]
				start_time="0"
				[filter]
					[filter_location]
						terrain="!,W*,Qx*,Ql*"
						[or]
							terrain="Wwf,Wwr,*^V*"
						[/or]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				layer="60"
				start_time="0"
				submerge="0.01"
				[filter]
					[filter_location]
						terrain="W*,Qx*,Ql*"
						[not]
							terrain="Wwf,Wwr,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="150"
					image="units/drakes/glider-flying.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="3"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-26"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Stexanix"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-27"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Xirizi"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="27"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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="Saurian Oracle,Saurian Soothsayer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="28"
			id="Saurian Augur-30"
			image="units/saurians/augur.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Augur"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="28"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Nax"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Augur"
			undead_variation="saurian"
			underlying_id="30"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/augur-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/augur-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/augur-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/augur-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/augur-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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="5"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Saurian Oracle,Saurian Soothsayer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="21"
			id="Saurian Augur-32"
			image="units/saurians/augur.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Augur"
			level="1"
			max_attacks="1"
			max_experience="15"
			max_hitpoints="21"
			max_moves="7"
			movement="6"
			movement_type="lizard"
			moves="7"
			name="Sklik"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Augur"
			undead_variation="saurian"
			underlying_id="32"
			unrenamable="no"
			upkeep="full"
			usage="healer"
			zoc="yes"
			[attack_anim]
				start_time="-300"
				[filter_attack]
					name="curse"
				[/filter_attack]
				[if]
					hits="yes"
					[missile_frame]
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="50"
						halo="projectiles/whitemissile-impact-1.png"
						offset="0.8"
					[/missile_frame]
					[missile_frame]
						begin="50"
						end="100"
						halo="projectiles/whitemissile-impact-2.png"
						offset="0.92"
					[/missile_frame]
					[missile_frame]
						begin="100"
						end="150"
						halo="projectiles/whitemissile-impact-3.png"
						offset="0.94"
					[/missile_frame]
					[missile_frame]
						begin="150"
						end="200"
						halo="projectiles/whitemissile-impact-4.png"
						offset="0.96"
					[/missile_frame]
					[missile_frame]
						begin="200"
						end="250"
						halo="projectiles/whitemissile-impact-5.png"
						offset="0.98"
					[/missile_frame]
					[missile_frame]
						begin="250"
						end="300"
						halo="projectiles/whitemissile-impact-6.png"
						offset="1.0"
					[/missile_frame]
					[missile_frame]
						begin="300"
						end="350"
						halo="projectiles/whitemissile-impact-7.png"
						offset="1.02"
					[/missile_frame]
					[missile_frame]
						begin="350"
						end="400"
						halo="projectiles/whitemissile-impact-8.png"
						offset="1.04"
					[/missile_frame]
				[/if]
				[else]
					hits="no"
					[missile_frame]
						alpha=".8~0.0:200"
						begin="-200"
						end="0"
						image="projectiles/whitemissile-n.png"
						image_diagonal="projectiles/whitemissile-ne.png"
						offset="0.0~0.8"
					[/missile_frame]
				[/else]
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
					sound="magicmissile.wav"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="staff"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/saurians/augur-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/saurians/augur-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/saurians/augur-melee-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/saurians/augur-melee-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/saurians/augur-melee-5.png"
				[/frame]
				[frame]
					duration="50"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/augur-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/augur-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/augur-defend-1.png"
				[/frame]
			[/defend]
			[healing_anim]
				start_time="-300"
				[frame]
					duration="50"
					halo="halo/saurian-magic-halo-1.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="60"
					halo="halo/saurian-magic-halo-2.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="70"
					halo="halo/saurian-magic-halo-3.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="80"
					halo="halo/saurian-magic-halo-4.png"
					image="units/saurians/augur-magic-2.png"
				[/frame]
				[frame]
					duration="90"
					halo="halo/saurian-magic-halo-5.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-6.png"
					image="units/saurians/augur-magic-1.png"
				[/frame]
				[frame]
					duration="100"
					halo="halo/saurian-magic-halo-7.png"
					image="units/saurians/augur.png"
				[/frame]
			[/healing_anim]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/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/staff-magic.png"
				name="staff"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Saurian Ambusher"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="hiss-die.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Saurian Skirmisher-33"
			image="units/saurians/skirmisher.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Skirmisher"
			level="1"
			max_attacks="1"
			max_experience="18"
			max_hitpoints="27"
			max_moves="6"
			movement="6"
			movement_type="lizard"
			moves="6"
			name="Zzalkzs"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Saurian Skirmisher"
			undead_variation="saurian"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="spear"
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/saurians/skirmisher-attack-ranged-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack-ranged-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				direction="ne,nw,s,se,sw"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/saurians/skirmisher-attack2.png"
						sound="spear.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n"
				[filter_attack]
					name="spear"
					range="melee"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/saurians/skirmisher-attack-n1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="90"
						image="units/saurians/skirmisher-attack-n2.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="90"
					end="150"
					image="units/saurians/skirmisher-attack1.png"
				[/frame]
				[frame]
					begin="150"
					end="200"
					image="units/saurians/skirmisher.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/saurians/skirmisher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/saurians/skirmisher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
						sound="hiss-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/saurians/skirmisher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/saurians/skirmisher.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]
				[filter]
					[filter_location]
						[not]
							terrain="C*,K*,*^V*"
						[/not]
					[/filter_location]
				[/filter]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-1.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-2.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-7.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-5.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-8.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-9.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-10.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-11.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="200"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="225"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-12.png"
				[/frame]
				[frame]
					duration="250"
					image="units/saurians/skirmisher-idle-13.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="4"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				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]
	[/player]
	[player]
		can_recruit="Dark Adept,Ghost,Ghoul,Skeleton,Skeleton Archer,Vampire Bat,Walking Corpse"
		gold="-1"
		gold_add="no"
		name="singalen"
		save_id="singalen2"
		[unit]
			advances_to="Blood Bat"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="bat-flapping.wav"
			ellipse="misc/ellipse-nozoc"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="17"
			id="Vampire Bat-6"
			image="units/undead/bat-se-3.png"
#textdomain wesnoth-units
			language_name=_ "Vampire Bat"
			level="0"
			max_attacks="1"
			max_experience="13"
			max_hitpoints="17"
			max_moves="8"
			movement="8"
			movement_type="smallfly"
			moves="8"
			race="bats"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Vampire Bat"
			undead_variation="bat"
			underlying_id="6"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="no"
			[attack_anim]
				direction="s,se,sw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n,ne,nw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,sw,se"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-se-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/defend]
			[defend]
				direction="n,nw,ne"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/defend]
			[standing_anim]
				direction="s,se,sw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				direction="n,ne,nw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="40"
				cave="40"
				deep_water="40"
				flat="40"
				forest="40"
				frozen="40"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="40"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="40"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="70"
				fire="100"
				impact="120"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="blade"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Wraith,Shadow"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="20"
			die_sound="wail-long.wav"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="18"
			id="Ghost-7"
			image="units/undead/ghost-s-2.png"
#textdomain wesnoth-units
			language_name=_ "Ghost"
			level="1"
			max_attacks="1"
			max_experience="21"
			max_hitpoints="18"
			max_moves="7"
			movement="7"
			movement_type="undeadspirit"
			moves="7"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Ghost"
			underlying_id="7"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="yes"
			[attack_anim]
				start_time="-200"
				[filter_attack]
					name="wail"
				[/filter_attack]
				[if]
					direction="n,ne,nw"
					[missile_frame]
						begin="-300"
						end="-230"
						image="projectiles/wailprojectile-n-1.png"
						image_diagonal="projectiles/wailprojectile-ne-1.png"
					[/missile_frame]
					[missile_frame]
						begin="-230"
						end="-160"
						image="projectiles/wailprojectile-n-2.png"
						image_diagonal="projectiles/wailprojectile-ne-2.png"
					[/missile_frame]
					[missile_frame]
						begin="-160"
						end="0"
						image="projectiles/wailprojectile-n-3.png"
						image_diagonal="projectiles/wailprojectile-ne-3.png"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="40"
						image="projectiles/wailprojectile-n-4.png"
						image_diagonal="projectiles/wailprojectile-ne-4.png"
					[/missile_frame]
					[missile_frame]
						begin="40"
						end="80"
						image="projectiles/wailprojectile-n-5.png"
						image_diagonal="projectiles/wailprojectile-ne-5.png"
					[/missile_frame]
					[missile_frame]
						begin="80"
						end="120"
						image="projectiles/wailprojectile-n-6.png"
						image_diagonal="projectiles/wailprojectile-ne-6.png"
					[/missile_frame]
				[/if]
				[else]
					direction="s,se,sw"
					[missile_frame]
						begin="-300"
						end="-230"
						image="projectiles/wailprojectile-s-1.png"
						image_diagonal="projectiles/wailprojectile-se-1.png"
					[/missile_frame]
					[missile_frame]
						begin="-230"
						end="-160"
						image="projectiles/wailprojectile-s-2.png"
						image_diagonal="projectiles/wailprojectile-se-2.png"
					[/missile_frame]
					[missile_frame]
						begin="-160"
						end="0"
						image="projectiles/wailprojectile-s-3.png"
						image_diagonal="projectiles/wailprojectile-se-3.png"
					[/missile_frame]
					[missile_frame]
						begin="0"
						end="40"
						image="projectiles/wailprojectile-s-4.png"
						image_diagonal="projectiles/wailprojectile-se-4.png"
					[/missile_frame]
					[missile_frame]
						begin="40"
						end="80"
						image="projectiles/wailprojectile-s-5.png"
						image_diagonal="projectiles/wailprojectile-se-5.png"
					[/missile_frame]
					[missile_frame]
						begin="80"
						end="120"
						image="projectiles/wailprojectile-s-6.png"
						image_diagonal="projectiles/wailprojectile-se-6.png"
					[/missile_frame]
				[/else]
				[if]
					direction="s,se,sw"
					[frame]
						duration="25"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-2.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="25"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/if]
				[else]
					direction="n,ne,nw"
					[frame]
						duration="25"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-2.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="75"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="25"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/else]
			[/attack_anim]
			[attack_anim]
				alpha="0.8~0.0:425,0.0~0.8:225"
				direction="s,se,sw"
				offset="0.0~1.0:425,0.0:225"
				start_time="-500"
				[filter_attack]
					name="touch"
				[/filter_attack]
				[frame]
					duration="25"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-s-attack-1.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-s-attack-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghost-s-attack-3.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-s-attack-2.png"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-s-attack-1.png"
				[/frame]
				[frame]
					duration="25"
					image="units/undead/ghost-s-2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				alpha="0.8~0.0:425,0.0~0.8:225"
				direction="n,ne,nw"
				offset="0.0~1.0:425,0.0:225"
				start_time="-500"
				[filter_attack]
					name="touch"
				[/filter_attack]
				[frame]
					duration="25"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-n-attack-1.png"
				[/frame]
				[frame]
					duration="175"
					image="units/undead/ghost-n-attack-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghost-n-attack-3.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-n-attack-2.png"
				[/frame]
				[frame]
					duration="75"
					image="units/undead/ghost-n-attack-1.png"
				[/frame]
				[frame]
					duration="25"
					image="units/undead/ghost-n-2.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,se,sw"
				start_time="-126"
				[if]
					alpha="0.8~0.5:126,0.5~0.8:126"
					hits="hit,kill"
					offset="0.0~-0.05:126,-0.05~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-1.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/if]
				[else]
					alpha="0.8~0.25:126,0.25~0.8:126"
					hits="miss"
					offset="0.0~-0.1:126,-0.1~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-s-attack-1.png"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-s-2.png"
					[/frame]
				[/else]
			[/defend]
			[defend]
				direction="n,ne,nw"
				start_time="-126"
				[if]
					alpha="0.8~0.5:126,0.5~0.8:126"
					hits="hit,kill"
					offset="0.0~-0.05:126,-0.05~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-1.png"
						sound="wail-sml.wav"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/if]
				[else]
					alpha="0.8~0.25:126,0.25~0.8:126"
					hits="miss"
					offset="0.0~-0.1:126,-0.1~0.0:126"
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="150"
						image="units/undead/ghost-n-attack-1.png"
					[/frame]
					[frame]
						duration="1"
						image="units/undead/ghost-n-2.png"
					[/frame]
				[/else]
			[/defend]
			[standing_anim]
				alpha="0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400"
				direction="s,se,sw"
				start_time="0"
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-s-3.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				alpha="0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400"
				direction="n,ne,nw"
				start_time="0"
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-1.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-2.png"
				[/frame]
				[frame]
					duration="250"
					image="units/undead/ghost-n-3.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="50"
				cave="50"
				deep_water="50"
				flat="50"
				forest="50"
				frozen="50"
				fungus="50"
				hills="50"
				impassable="50"
				mountains="50"
				reef="50"
				sand="50"
				shallow_water="50"
				swamp_water="50"
				unwalkable="50"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="1"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="1"
				reef="2"
				sand="1"
				shallow_water="2"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="50"
				cold="30"
				fire="90"
				impact="50"
				pierce="50"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "touch"
				icon="attacks/touch-undead.png"
				name="touch"
				number="3"
				range="melee"
				type="arcane"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[attack]
				damage="3"
#textdomain wesnoth-units
				description=_ "wail"
				name="wail"
				number="3"
				range="ranged"
				type="cold"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Dark Adept-10"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept.png"
#textdomain wesnoth-units
			language_name=_ "Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Vent"
			profile="portraits/humans/dark-adept.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="10"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="17"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Dark Adept-13"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Rassa"
			profile="portraits/humans/dark-adept+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="13"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept+female-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept+female-defend-2.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/undead-necromancers/adept+female-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/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^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Dark Adept-17"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="27"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Ysa"
			profile="portraits/humans/dark-adept+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept+female-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept+female-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept+female-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept+female-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept+female.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept+female-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept+female-defend-2.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/undead-necromancers/adept+female-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept+female-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept+female.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "female^quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Bone Shooter"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="skeleton-die-1.ogg,skeleton-die-2.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="31"
			id="Skeleton Archer-23"
			image="units/undead-skeletal/archer.png"
#textdomain wesnoth-units
			language_name=_ "Skeleton Archer"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="31"
			max_moves="5"
			movement="5"
			movement_type="undeadfoot"
			moves="5"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Skeleton Archer"
			underlying_id="23"
			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]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/undead-skeletal/archer-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/undead-skeletal/archer-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/undead-skeletal/archer-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="fist"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-100"
					image="units/undead-skeletal/archer.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/undead-skeletal/archer-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/undead-skeletal/archer-attack.png"
						sound="fist.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-die2-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die2-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die2-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die2-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die2-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die2-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die2-7.png"
				[/frame]
			[/death]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-die-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die-7.png"
				[/frame]
				[frame]
					begin="700"
					end="800"
					image="units/undead-skeletal/archer-die-8.png"
				[/frame]
				[frame]
					begin="800"
					end="900"
					image="units/undead-skeletal/archer-die-9.png"
				[/frame]
				[frame]
					begin="900"
					end="1000"
					image="units/undead-skeletal/archer-die-10.png"
				[/frame]
				[frame]
					begin="1000"
					end="1100"
					image="units/undead-skeletal/archer-die-11.png"
				[/frame]
				[frame]
					begin="1100"
					end="1200"
					image="units/undead-skeletal/archer-die-12.png"
				[/frame]
				[frame]
					begin="1200"
					end="1300"
					image="units/undead-skeletal/archer-die-13.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-skeletal/archer.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/archer-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-skeletal/archer-defend.png"
						sound="skeleton-hit-1.ogg,skeleton-hit-2.ogg,skeleton-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-skeletal/archer-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-skeletal/archer.png"
				[/frame]
			[/defend]
			[idle_anim]
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/archer-idle-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-idle-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-idle-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-idle-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-idle-5.png"
				[/frame]
				[frame]
					begin="500"
					end="700"
					image="units/undead-skeletal/archer-idle-6.png"
				[/frame]
				[frame]
					begin="700"
					end="800"
					image="units/undead-skeletal/archer-idle-7.png"
				[/frame]
				[frame]
					begin="800"
					end="900"
					image="units/undead-skeletal/archer-idle-8.png"
				[/frame]
				[frame]
					begin="900"
					end="1000"
					image="units/undead-skeletal/archer-idle-9.png"
				[/frame]
				[frame]
					begin="1000"
					end="1100"
					image="units/undead-skeletal/archer-idle-10.png"
				[/frame]
				[frame]
					begin="1100"
					end="1200"
					image="units/undead-skeletal/archer-idle-11.png"
				[/frame]
				[frame]
					begin="1200"
					end="1400"
					image="units/undead-skeletal/archer-idle-12.png"
				[/frame]
				[frame]
					begin="1400"
					end="1500"
					image="units/undead-skeletal/archer-idle-13.png"
				[/frame]
				[frame]
					begin="1500"
					end="1600"
					image="units/undead-skeletal/archer-idle-14.png"
				[/frame]
			[/idle_anim]
			[recruit_anim]
				[frame]
					alpha="0~1:300"
					begin="-200"
					end="100"
					image="units/undead-skeletal/archer-die2-7.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/archer-die2-6.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/archer-die2-5.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/archer-die2-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/archer-die2-3.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/archer-die2-2.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/archer-die2-1.png"
				[/frame]
			[/recruit_anim]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="3"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="150"
				blade="60"
				cold="40"
				fire="120"
				impact="120"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^submerge"
					female_name_inactive=_ "female^submerge"
					id="submerge"
					name=_ "submerge"
					name_inactive=_ "submerge"
					[filter_self]
						[filter_location]
							terrain="Wo"
						[/filter_location]
					[/filter_self]
				[/hides]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="3"
#textdomain wesnoth-units
				description=_ "fist"
				icon="attacks/fist-skeletal.png"
				name="fist"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="6"
				description=_ "bow"
				icon="attacks/bow-orcish.png"
				name="bow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Blood Bat"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="bat-flapping.wav"
			ellipse="misc/ellipse-nozoc"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flies="true"
			flying="yes"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="15"
			id="Vampire Bat-25"
			image="units/undead/bat-se-3.png"
#textdomain wesnoth-units
			language_name=_ "Vampire Bat"
			level="0"
			max_attacks="1"
			max_experience="13"
			max_hitpoints="15"
			max_moves="9"
			movement="8"
			movement_type="smallfly"
			moves="9"
			race="bats"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Vampire Bat"
			undead_variation="bat"
			underlying_id="25"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			zoc="no"
			[attack_anim]
				direction="s,se,sw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-se-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-se-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				direction="n,ne,nw"
				offset="0.0~0.9:200,0.9~0.0:160"
				start_time="-200"
				[filter_attack]
					name="fangs"
				[/filter_attack]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-1.png"
					sound="bat-flapping.wav"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="30"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="bite-small.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="70"
						image="units/undead/bat-ne-4.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="40"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/attack_anim]
			[defend]
				direction="s,sw,se"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-se-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-se-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-se-3.png"
				[/frame]
			[/defend]
			[defend]
				direction="n,nw,ne"
				start_time="-126"
				[if]
					hits="miss"
					offset="0.0~-0.15,-0.15~0.0"
				[/if]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
						sound="bat-hit-1.ogg,bat-hit-2.ogg,bat-hit-3.ogg,bat-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/bat-ne-4.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/bat-ne-3.png"
				[/frame]
			[/defend]
			[standing_anim]
				direction="s,se,sw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-se-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-se-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-se-4.png"
				[/frame]
			[/standing_anim]
			[standing_anim]
				direction="n,ne,nw"
				layer="60"
				start_time="0"
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-1.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-2.png"
				[/frame]
				[frame]
					duration="50"
					image="units/undead/bat-ne-3.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead/bat-ne-5.png"
				[/frame]
				[frame]
					duration="60"
					image="units/undead/bat-ne-4.png"
				[/frame]
			[/standing_anim]
			[defense]
				castle="40"
				cave="40"
				deep_water="40"
				flat="40"
				forest="40"
				frozen="40"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="40"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="40"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="70"
				fire="100"
				impact="120"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="blade"
				[specials]
					[drains]
#textdomain wesnoth
						description=_ "Drain:
This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
						id="drains"
						name=_ "drains"
					[/drains]
				[/specials]
			[/attack]
			[modifications]
				[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]
				[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="Revenant,Deathblade"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="15"
			die_sound="skeleton-die-1.ogg,skeleton-die-2.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Skeleton-29"
			image="units/undead-skeletal/skeleton.png"
#textdomain wesnoth-units
			language_name=_ "Skeleton"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="34"
			max_moves="5"
			movement="5"
			movement_type="undeadfoot"
			moves="5"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Skeleton"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				offset="0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0"
				start_time="-250"
				[filter_attack]
					name="axe"
				[/filter_attack]
				[frame]
					duration="150"
					image="units/undead-skeletal/skeleton-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						duration="100"
						image="units/undead-skeletal/skeleton-attack-2.png"
						sound="axe.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						duration="100"
						image="units/undead-skeletal/skeleton-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-attack-3.png"
				[/frame]
				[frame]
					duration="90"
					image="units/undead-skeletal/skeleton-attack-4.png"
				[/frame]
				[frame]
					duration="80"
					image="units/undead-skeletal/skeleton-attack-5.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-skeletal/skeleton-dying-1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/skeleton-dying-2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/skeleton-dying-3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/skeleton-dying-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/skeleton-dying-5.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/skeleton-dying-6.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/skeleton-dying-7.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-skeletal/skeleton-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-skeletal/skeleton-defend-2.png"
						sound="skeleton-hit-1.ogg,skeleton-hit-2.ogg,skeleton-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-skeletal/skeleton-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-skeletal/skeleton-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/undead-skeletal/skeleton-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-skeletal/skeleton-idle-2.png"
				[/frame]
			[/idle_anim]
			[recruit_anim]
				[frame]
					alpha="0~1:300"
					begin="-200"
					end="100"
					image="units/undead-skeletal/skeleton-dying-7.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-skeletal/skeleton-dying-6.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-skeletal/skeleton-dying-5.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-skeletal/skeleton-dying-4.png"
				[/frame]
				[frame]
					begin="400"
					end="500"
					image="units/undead-skeletal/skeleton-dying-3.png"
				[/frame]
				[frame]
					begin="500"
					end="600"
					image="units/undead-skeletal/skeleton-dying-2.png"
				[/frame]
				[frame]
					begin="600"
					end="700"
					image="units/undead-skeletal/skeleton-dying-1.png"
				[/frame]
			[/recruit_anim]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="3"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="150"
				blade="60"
				cold="40"
				fire="120"
				impact="120"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Submerge:
This unit can hide in deep water, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in deep water, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^submerge"
					female_name_inactive=_ "female^submerge"
					id="submerge"
					name=_ "submerge"
					name_inactive=_ "submerge"
					[filter_self]
						[filter_location]
							terrain="Wo"
						[/filter_location]
					[/filter_self]
				[/hides]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "axe"
				icon="attacks/axe-undead.png"
				name="axe"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
#textdomain wesnoth
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dark Sorcerer"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="27"
			id="Dark Adept-31"
			ignore_race_traits="yes"
			image="units/undead-necromancers/adept.png"
#textdomain wesnoth-units
			language_name=_ "Dark Adept"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="27"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Veoran"
			profile="portraits/humans/dark-adept.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Dark Adept"
			underlying_id="31"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[missile_frame]
					begin="-50"
					end="150"
					image="projectiles/darkmissile-n.png"
					image_diagonal="projectiles/darkmissile-ne.png"
				[/missile_frame]
				[frame]
					begin="-450"
					end="-420"
					image="units/undead-necromancers/adept.png"
				[/frame]
				[frame]
					begin="-420"
					end="-395"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="-395"
					end="-320"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="-320"
					end="-300"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-300"
					end="-250"
					halo="halo/undead/dark-magic-1.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-250"
					end="-200"
					halo="halo/undead/dark-magic-2.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-200"
					end="-150"
					halo="halo/undead/dark-magic-3.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					halo="halo/undead/dark-magic-4.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[frame]
					begin="-100"
					end="-50"
					halo="halo/undead/dark-magic-5.png"
					halo_x="0"
					halo_y="-12"
					image="units/undead-necromancers/adept-magic-3.png"
				[/frame]
				[if]
					hits="no"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark-miss.ogg"
					[/frame]
				[/if]
				[else]
					hits="yes"
					[frame]
						begin="-50"
						end="0"
						halo="halo/undead/dark-magic-6.png"
						halo_x="0"
						halo_y="-12"
						image="units/undead-necromancers/adept-magic-3.png"
						sound="magic-dark.ogg"
					[/frame]
				[/else]
				[frame]
					begin="0"
					end="50"
					image="units/undead-necromancers/adept-magic-2.png"
				[/frame]
				[frame]
					begin="50"
					end="90"
					image="units/undead-necromancers/adept-magic-1.png"
				[/frame]
				[frame]
					begin="90"
					end="100"
					image="units/undead-necromancers/adept.png"
				[/frame]
			[/attack_anim]
			[death]
				[frame]
					begin="0"
					end="100"
					image="units/undead-necromancers/adept-die1.png"
				[/frame]
				[frame]
					begin="100"
					end="200"
					image="units/undead-necromancers/adept-die2.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/undead-necromancers/adept-die3.png"
				[/frame]
				[frame]
					begin="300"
					end="400"
					image="units/undead-necromancers/adept-die4.png"
				[/frame]
				[frame]
					begin="400"
					end="520"
					image="units/undead-necromancers/adept-die5.png"
				[/frame]
				[frame]
					begin="520"
					end="640"
					image="units/undead-necromancers/adept-die6.png"
				[/frame]
				[frame]
					begin="640"
					end="780"
					image="units/undead-necromancers/adept-die7.png"
				[/frame]
				[frame]
					begin="780"
					end="900"
					image="units/undead-necromancers/adept-die8.png"
				[/frame]
			[/death]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead-necromancers/adept-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead-necromancers/adept-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead-necromancers/adept-defend-1.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/dark-adept.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[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]
			[trait]
				female_name=_ "female^intelligent"
				id="intelligent"
				male_name=_ "intelligent"
				[effect]
					apply_to="max_experience"
					increase="-20%"
				[/effect]
			[/trait]
			[trait]
				female_name=_ "female^resilient"
				id="resilient"
				male_name=_ "resilient"
				[effect]
					apply_to="hitpoints"
					increase_total="4"
				[/effect]
				[effect]
					apply_to="hitpoints"
					increase_total="1"
					times="per level"
				[/effect]
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "chill wave"
				icon="attacks/iceball.png"
				name="chill wave"
				number="2"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="7"
#textdomain wesnoth-units
				description=_ "shadow wave"
				icon="attacks/dark-missile.png"
				name="shadow wave"
				number="2"
				range="ranged"
				type="arcane"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					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="Necrophage"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="16"
			die_sound="ghoul-hit.wav"
			ellipse="misc/ellipse"
			experience="0"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Ghoul-34"
			image="units/undead/ghoul.png"
#textdomain wesnoth-units
			language_name=_ "Ghoul"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="gruefoot"
			moves="5"
			profile="portraits/undead/ghoul.png"
			race="undead"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Ghoul"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="claws"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/undead/ghoul.png"
				[/frame]
				[frame]
					begin="-200"
					end="-125"
					image="units/undead/ghoul-attack-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-125"
						end="-50"
						image="units/undead/ghoul-attack-2.png"
						sound="claws.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-125"
						end="-50"
						image="units/undead/ghoul-attack-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[if]
					hits="hit"
					poisoned_sound_start_time="-100"
					[filter_second]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter_second]
					[poisoned_sound_frame]
						duration="100"
						sound="poison.ogg"
					[/poisoned_sound_frame]
				[/if]
				[frame]
					begin="-50"
					end="50"
					image="units/undead/ghoul-attack-3.png"
				[/frame]
				[frame]
					begin="50"
					end="125"
					image="units/undead/ghoul-attack-4.png"
				[/frame]
				[frame]
					begin="125"
					end="200"
					image="units/undead/ghoul.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/undead/ghoul-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/ghoul-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/undead/ghoul-defend-2.png"
						sound="ghoul-hit.wav"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/undead/ghoul-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/undead/ghoul-defend-1.png"
				[/frame]
			[/defend]
			[trait]
				availability="musthave"
#textdomain wesnoth
				description=_ "Fights normally during unfavorable times of day/night"
				female_name=_ "female^fearless"
				id="fearless"
				male_name=_ "fearless"
			[/trait]
			[defense]
				castle="40"
				cave="60"
				deep_water="90"
				flat="60"
				forest="50"
				frozen="70"
				fungus="40"
				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="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="80"
				blade="90"
				cold="60"
				fire="90"
				impact="100"
				pierce="70"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				not_living="yes"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "claws"
				icon="attacks/claws-undead.png"
				name="claws"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[poison]
#textdomain wesnoth
						description=_ "Poison:
This attack poisons living targets. Poisoned units lose 8 HP every turn until they are cured or are reduced to 1 HP. Poison can not, of itself, kill a unit."
						id="poison"
						name=_ "poison"
					[/poison]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					availability="musthave"
					description=_ "Immune to drain, poison and plague"
					female_name=_ "female^undead"
					id="undead"
					male_name=_ "undead"
					name=_ "undead"
					[effect]
						add="not_living"
						apply_to="status"
					[/effect]
				[/trait]
				[trait]
					availability="musthave"
					description=_ "Fights normally during unfavorable times of day/night"
					female_name=_ "female^fearless"
					id="fearless"
					male_name=_ "fearless"
					name=_ "fearless"
				[/trait]
			[/modifications]
		[/unit]
	[/player]
[/snapshot]
[replay_start]
	current_tod="0"
#textdomain wesnoth-multiplayer
	description=_ "Long ago, a great star fell from the heavens, leaving its mark on this coniferous region."
	experience_modifier="70"
	hash=",l0WIdlvwhRv2MrLw7-GzItIrHmf3t<e7aikaCC34Hxs1Bn-aQuq5Zg0NcCm1unEf0+QkII+JmJPfX<NMtPzI5V3pyr.3QqT40HMe+f8q.0Lf0JTNoLKvhjpkCKXq9hq"
	id="multiplayer_Fallenstar_Lake"
	map_data="border_size=1
usage=map

Mm^Xm       , Mm^Xm       , Mm          , Hh          , Mm          , Hh          , Hh          , Gg          , Rd          , Rd          , Gg          , Wwf         , Wwf         , Gg          , Mm          , Hh          , Gs^Fp       , Gs^Fp       , Gg          , Wwf         , Hh          , Ce          , Hh          , Wwf         , Gg          , Gs^Fp       , Mm          , Hh          , Gs^Fp       , Gg          , Wwf         , Wwf         , Gg          , Rd          , Rd          , Ggf         , Hh          , Hh          , Mm          , Hh          , Mm          , Mm          , Mm^Xm       
Mm          , Mm^Xm       , Mm          , Mm          , Hh          , Hh          , Rd          , Rd^Uf       , Mm          , Gs^Fp       , Hh          , Gg          , Wwf         , Gg          , Gg          , Hh          , Gg          , Hh          , Gg          , Wwf         , Wwf         , Ce          , Wwf         , Wwf         , Gg          , Hh          , Gg          , Hh          , Gg          , Gg          , Wwf         , Gg          , Hh          , Gs^Fp       , Mm          , Rd^Uf       , Rd          , Hh          , Hh          , Mm          , Mm          , Mm^Xm       , Mm^Xm       
Mm^Xm       , Mm^Xm       , Mm          , Mm          , Hh          , Gg          , Rd          , Gg          , Gg          , Hh          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gs^Fp       , Gg          , Wwf         , Ggf         , Gs^Fp       , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Hh          , Gg          , Gg          , Rd          , Ggf         , Hh          , Mm          , Mm          , Mm^Xm       , Mm          
Mm          , Mm          , Mm          , Gs^Fp       , Gs^Fp       , Gs^Fp       , Rd          , Gs^Fp       , Ggf         , Gg          , Gs^Fp       , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Ce          , Gg          , Gg          , Wwf         , Gg          , Gg          , Ce          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Gs^Fp       , Rd          , Gs^Fp       , Gs^Fp       , Gs^Fp       , Mm          , Mm^Xm       , Mm          
Hh          , Gs^Fp       , Gs^Fp       , Hh          , Rd          , Rd          , Gs^Fp       , Hh          , Gg^Vh       , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gs^Fp       , Gs^Fp       , Wwf         , Wwf         , Wwf         , Gs^Fp       , Gs^Fp       , Gg          , Wwf         , Gg          , Gg          , Gg          , Gg          , Ggf         , Gg          , Gg          , Gg^Vh       , Hh          , Gs^Fp       , Rd          , Rd          , Hh          , Gs^Fp       , Gs^Fp       , Hh          
Gs^Fp       , Gs^Fp       , Rd          , Rd          , Gs^Fp       , Rd          , Rd          , Rd          , Rd          , Gg          , Gg          , Gg          , Rd          , Hh          , Gs^Fp       , Ss^Vhs      , Ggf         , Wwf         , Wwf         , Wwf         , Wwf         , Hh          , Wwf         , Wwf         , Wwf         , Wwf         , Ggf         , Ss^Vhs      , Gs^Fp       , Hh          , Rd          , Gg          , Gg          , Gg          , Rd          , Rd          , Rd          , Rd          , Gs^Fp       , Rd          , Rd          , Gs^Fp       , Gs^Fp       
Gs^Fp       , Gs^Fp       , Ce          , Gs^Fp       , Gs^Fp       , Mm          , Gs^Fp       , Gs^Fp       , Hh          , Rd          , Rd          , Rd          , Gs^Fp       , Mm          , Gg          , Gg          , Gg          , Gg          , Hh          , Mm          , Ce          , Wwf         , Ce          , Mm          , Hh          , Gg          , Gg          , Ggf         , Gg          , Mm          , Gs^Fp       , Rd          , Rd          , Rd          , Hh          , Gg          , Gs^Fp       , Mm          , Gs^Fp       , Gs^Fp       , Ce          , Gs^Fp       , Gs^Fp       
Ce          , Ce          , 1 Ke        , Gs^Fp       , Rr          , Hh          , Rd          , Hh          , Mm          , Gs^Fp       , Ke          , Ce          , Gg          , Gg          , Rd^Uf       , Gg          , Gg          , Gg          , Gg          , Hh          , Wwf         , Wwf         , Wwf         , Hh          , Gg          , Gg          , Gg          , Gg          , Rd^Uf       , Gg          , Gg          , Ce          , Ke          , Gs^Fp       , Mm          , Gs^Fp       , Hh          , Hh          , Rr          , Gs^Fp       , 2 Ke        , Ce          , Ce          
Ce          , Ce          , Ce          , Rr          , Rr          , Gs^Fp       , Mm^Vhh      , Rd          , Rd          , Hh          , Ggf         , Ce          , Gg          , Hh          , Mm          , Rd          , Gg^Ve       , Gg          , Wwf         , Wwf         , Gg^Fp       , Ww          , Gg^Fp       , Wwf         , Wwf         , Gg          , Gg^Ve       , Rd          , Mm          , Hh          , Gg          , Ce          , Ggf         , Hh          , Rd          , Rd          , Mm^Vhh      , Gs^Fp       , Rr          , Rr          , Ce          , Ce          , Ce          
Ce          , Ce          , Gs^Fp       , Gs^Fp       , Rr          , Hh          , Gs^Fp       , Rd^Uf       , Gg          , Gg          , Gg          , Gg          , Gg          , Hh          , Gs^Fp       , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gg          , Wwf         , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gs^Fp       , Hh          , Gg          , Gg          , Gg          , Gg          , Gg          , Rd^Uf       , Gs^Fp       , Gg          , Rr          , Gs^Fp       , Gs^Fp       , Ce          , Ce          
Wwf         , Wwf         , Wwf         , Rr          , Gs^Fp       , Rr          , Rr          , Gg          , Gs^Fp       , Hh          , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Wwf         , Gg          , Wwf         , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Hh          , Gs^Fp       , Gg          , Rr          , Rr          , Gs^Fp       , Rr          , Rr          , Wwf         , Wwf         
Gg          , Gg          , Wwf         , Gs^Fp       , Ggf         , Hh          , Gg          , Rr          , Rr          , Gs^Fp       , Rr          , Ke          , Wwf         , Wwf         , Wwf         , Wwf         , Gg          , Gg          , Mm          , Gg          , Hh          , Wwf         , Hh          , Gg          , Mm          , Gg          , Gg          , Wwf         , Wwf         , Wwf         , Wwf         , Ke          , Rr          , Gs^Fp       , Rr          , Rr          , Gg          , Hh          , Rr          , Gs^Fp       , Wwf         , Wwf         , Wwf         
Wwf         , Wwf         , Gg          , Wwf         , Gs^Fp       , Gs^Fp       , Mm          , Hh          , Gs^Fp       , Rr          , Gs^Fp       , Ce          , Ke          , Rr          , Gg^Vh       , Gg          , Hh          , Hh          , Mm^Xm       , Mm^Xm       , Wwf         , Wwf         , Wwf         , Mm^Xm       , Mm^Xm       , Hh          , Hh          , Gg          , Gg^Vh       , Rr          , Ke          , Ce          , Gs^Fp       , Rr          , Gs^Fp       , Hh          , Mm          , Gs^Fp       , Gs^Fp       , Wwf         , Rr          , Gs^Fp       , Gs^Fp       
Gs^Fp       , Gs^Fp       , Gg          , Wwf         , Wwf         , Gs^Fp       , Wwf         , Wwf         , Rr          , Rr          , Gg          , Gg          , Rr          , Rr          , Gg          , Gg          , Mm^Xm       , Mm^Xm       , Gs^Fp       , Wwf         , Ww          , Ww          , Ww          , Wwf         , Gs^Fp       , Mm^Xm       , Mm^Xm       , Gg          , Gg          , Rr          , Rr          , Gg          , Gg          , Rr          , Rr          , Wwf         , Wwf         , Gs^Fp       , Wwf         , Wwf         , Wwf         , Gs^Fp       , Hh          
Gs^Fp       , Gs^Fp       , Gg          , Gg^Fp       , Wwf         , Wwf         , Hh          , Mm          , Hh          , Gg          , Hh          , Gs^Fp       , Gg          , Gg          , Gs^Fp       , Ggf         , Mm          , Mm^Xm       , Wwf         , Wwf         , Ww          , Ww          , Ww          , Wwf         , Wwf         , Mm^Xm       , Mm          , Gg          , Gs^Fp       , Gg          , Gg          , Gs^Fp       , Hh          , Gg          , Hh          , Mm          , Hh          , Wwf         , Wwf         , Gs^Fp       , Gg          , Wwf         , Wwf         
Rd          , Rd          , Gg          , Gg^Ve       , Wwf         , Hh          , Mm          , Gs^Fp       , Gs^Fp       , Gg          , Gg^Ve       , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Wwf         , Ww          , Ww          , Wo          , Wo          , Wo          , Ww          , Ww          , Wwf         , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg^Ve       , Gg          , Gs^Fp       , Gs^Fp       , Mm          , Hh          , Wwf         , Gg^Ve       , Gg          , Gg          , Rd          
Hh          , Gg          , Gs^Fp       , Gg          , Gg          , Wwf         , Wwf         , Rr          , Rr          , Rr          , Rr          , Wwf         , Wwf         , Gg          , Hh          , Ss^Vhs      , Wwf         , Ww          , Ww          , Wo          , Wo          , Wo          , Wo          , Wo          , Ww          , Ww          , Wwf         , Ss^Vhs      , Hh          , Gg          , Wwf         , Wwf         , Rr          , Rr          , Rr          , Rr          , Wwf         , Wwf         , Gs^Fp       , Gg          , Gs^Fp       , Rd          , Gg          
Rd^Uf       , Rd          , Mm          , Gs^Fp       , Ggf         , Gg          , Ww          , Hh          , Gg          , Gs^Fp       , Rr          , Rr          , Wwf         , Mm          , Mm^Xm       , Wwf         , Rr          , Wwf         , Wwf         , Ww          , Wo          , Mm^Xm       , Wo          , Ww          , Wwf         , Wwf         , Rr          , Wwf         , Mm^Xm       , Mm          , Wwf         , Rr          , Rr          , Gs^Fp       , Gg          , Hh          , Ww          , Gg          , Gg          , Hh          , Mm          , Rd          , Hh          
Rd^Uf       , Rd          , Rd          , Hh          , Gg          , Gg          , Ww          , Gs^Fp       , Gg          , Gg          , Rr          , Hh          , Mm          , Wwf         , Wwf         , Wwf         , Mm^Xm       , Gs^Fp       , Wwf         , Ww          , Ww          , Wo          , Ww          , Ww          , Wwf         , Gs^Fp       , Mm^Xm       , Wwf         , Wwf         , Wwf         , Mm          , Hh          , Rr          , Gg          , Gg          , Gs^Fp       , Ww          , Gg          , Gg          , Gs^Fp       , Rd          , Rd          , Rd          
Gs^Fp       , Gs^Fp       , Gs^Fp       , Gg          , Gg          , Ww          , Gg          , Hh          , Gg          , Rr          , Rr          , Hh          , Wwf         , Wwf         , Gg^Uf       , Ke          , Ce          , Ce          , Hh          , Wwf         , Ww          , Ww          , Ww          , Wwf         , Hh          , Ce          , Ce          , Ke          , Gg^Uf       , Wwf         , Wwf         , Hh          , Rr          , Rr          , Gg          , Hh          , Gg          , Ww          , Gg          , Rd          , Gs^Fp       , Gs^Fp       , Gs^Fp       
Mm          , Hh          , Rd^Uf       , Gg          , Gg          , Wwf         , Wwf         , Gg          , Gg          , Gg          , Wwf         , Wwf         , Ss^Vhs      , Wwf         , Gs^Fp       , Hh          , Ce          , Mm^Xm       , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Wwf         , Mm^Xm       , Ce          , Hh          , Gs^Fp       , Wwf         , Ss^Vhs      , Wwf         , Wwf         , Gg          , Gg          , Gg          , Wwf         , Wwf         , Gg          , Gg          , Rd^Uf       , Hh          , Hh          
Gs^Fp       , Gs^Fp       , Rd          , Rd          , Rd          , Gg^Ve       , Gg          , Ww          , Ww          , Ww          , Ww          , Gg          , Ss          , Gg          , Ss          , Ce          , Ss          , Wwf         , Mm^Xm       , Gs^Fp       , Hh          , Hh          , Hh          , Gs^Fp       , Mm^Xm       , Wwf         , Ss          , Ce          , Ss          , Gg          , Ss          , Gg          , Ww          , Ww          , Ww          , Ww          , Gg          , Gg^Ve       , Rd          , Rd          , Rd          , Gs^Fp       , Gs^Fp       
Mm          , Hh          , Gs^Fp       , Mm          , Hh          , Rd          , Gs^Fp       , Gg          , Gs^Fp       , Gs^Fp       , Ww          , Gs^Fp       , Mm          , Ss          , Gs^Fp       , Ss          , Mm^Xm       , Hh          , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Hh          , Mm^Xm       , Ss          , Gs^Fp       , Ss          , Mm          , Gg^Fp       , Ww          , Gg^Fp       , Hh          , Gg          , Gs^Fp       , Rd          , Hh          , Mm          , Hh          , Mm          , Mm          
Mm          , Mm          , Hh          , Hh          , Gs^Fp       , Rd^Uf       , Hh          , Gg          , Hh          , Ww          , Hh          , Hh          , Hh          , Gs^Fp       , Hh          , Mm          , Mm^Xm       , Mm          , Mm          , Mm          , Mm^Xm       , Mm          , Mm          , Mm          , Mm^Xm       , Mm          , Mm^Xm       , Hh          , Gs^Fp       , Gs^Fp       , Hh          , Hh          , Hh          , Ww          , Gs^Fp       , Gs^Fp       , Hh          , Rd^Uf       , Gs^Fp       , Mm          , Hh          , Mm          , Mm          
"
	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 - Fallenstar Lake"
	next_underlying_unit_id="0"
#textdomain wesnoth
	objectives=_ "Victory:
@Defeat enemy leader(s)"
	observer="yes"
	random_seed="191336950"
	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="human"
		current_player="KnightKunibert"
		flag_rgb="magenta"
		fog="yes"
		gender="male"
		gold="100"
		id="KnightKunibert1"
		image="units/drakes/flare.png"
		income="0"
		leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
		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"
		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"
		save_id="KnightKunibert1"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="1"
		team_name="west"
		terrain_liked="Hh, Ha, Ds, Ss"
		type="Drake Flare"
		user_team_name="wesnoth-multiplayerteamname^West"
		village_gold="2"
		[ai]
			recruitment_pattern="fighter,fighter,archer,healer,scout,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="network"
		current_player="singalen"
		flag_rgb="magenta"
		fog="yes"
		gender="male"
		gold="100"
		id="singalen2"
		image="units/undead-necromancers/dark-sorcerer.png"
		income="0"
		leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter,Necrophage"
		mp_countdown="yes"
		mp_countdown_action_bonus="20"
		mp_countdown_init_time="270"
		mp_countdown_reservoir_time="270"
		mp_countdown_turn_bonus="200"
		name="singalen"
		random_leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter"
		recruit="Skeleton,Skeleton Archer,Walking Corpse,Ghost,Vampire Bat,Dark Adept,Ghoul"
		save_id="singalen2"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="2"
		team_name="east"
		terrain_liked="Ss, Hh, Ha, Ww"
		type="Bone Shooter"
		user_team_name="wesnoth-multiplayerteamname^East"
		village_gold="2"
		[ai]
			recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
			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 - Fallenstar Lake"
		[team]
			[recruits]
				Drake Burner="2"
				Drake Clasher="1"
				Drake Glider="3"
				Saurian Augur="4"
				Saurian Skirmisher="6"
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
				Fire Drake="1"
				Saurian Oracle="1"
			[/advances]
			[deaths]
				Drake Burner="1"
				Drake Clasher="1"
				Drake Glider="1"
				Saurian Augur="1"
				Saurian Skirmisher="3"
			[/deaths]
			[killed]
				Bone Shooter="1"
				Ghoul="2"
				Skeleton="2"
				Walking Corpse="2"
			[/killed]
			[attacks]
				[sequence]
					s0100="1"
					s1100="1"
					_num="40"
				[/sequence]
				[sequence]
					s011="1"
					s0111="1"
					s01110="1"
					s1="1"
					s1001="1"
					s101="1"
					s11="1"
					_num="50"
				[/sequence]
				[sequence]
					s00="1"
					s10="1"
					s101="1"
					s11="1"
					s1111="1"
					_num="60"
				[/sequence]
				[sequence]
					s011="1"
					s100="1"
					s101="1"
					_num="70"
				[/sequence]
			[/attacks]
			[defends]
				[sequence]
					s="3"
					_num="0"
				[/sequence]
				[sequence]
					s0="1"
					s01="1"
					_num="40"
				[/sequence]
				[sequence]
					s10="1"
					s11="1"
					_num="50"
				[/sequence]
				[sequence]
					s0="2"
					s00="3"
					s01="1"
					s10="1"
					s11="3"
					_num="60"
				[/sequence]
				[sequence]
					s001="1"
					_num="70"
				[/sequence]
			[/defends]
			recruit_cost="263"
			recall_cost="0"
			damage_inflicted="241"
			damage_taken="291"
			expected_damage_inflicted="220990"
			expected_damage_taken="243954"
			turn_damage_inflicted="40"
			turn_damage_taken="53"
			turn_expected_damage_inflicted="26015"
			turn_expected_damage_taken="50906"
			save_id="KnightKunibert1"
		[/team]
		[team]
			[recruits]
				Dark Adept="4"
				Ghost="1"
				Ghoul="3"
				Skeleton="3"
				Skeleton Archer="1"
				Vampire Bat="2"
				Walking Corpse="2"
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
			[/advances]
			[deaths]
				Bone Shooter="1"
				Ghoul="2"
				Skeleton="2"
				Walking Corpse="2"
			[/deaths]
			[killed]
				Drake Burner="1"
				Drake Clasher="1"
				Drake Glider="1"
				Saurian Augur="1"
				Saurian Skirmisher="3"
			[/killed]
			[attacks]
				[sequence]
					s111="1"
					_num="50"
				[/sequence]
				[sequence]
					s011="1"
					s100="2"
					s101="1"
					s11="1"
					s111="1"
					_num="60"
				[/sequence]
				[sequence]
					s010="1"
					s1="1"
					s10="2"
					s101="2"
					s11="3"
					s111="2"
					_num="70"
				[/sequence]
			[/attacks]
			[defends]
				[sequence]
					s="12"
					_num="0"
				[/sequence]
				[sequence]
					s0="1"
					s101="1"
					s11="1"
					_num="60"
				[/sequence]
				[sequence]
					s01="1"
					s011="1"
					_num="70"
				[/sequence]
			[/defends]
			recruit_cost="233"
			recall_cost="0"
			damage_inflicted="291"
			damage_taken="241"
			expected_damage_inflicted="243954"
			expected_damage_taken="220990"
			turn_damage_inflicted="141"
			turn_damage_taken="47"
			turn_expected_damage_inflicted="138160"
			turn_expected_damage_taken="37329"
			save_id="singalen2"
		[/team]
	[/scenario]
[/statistics]
