<?xml version="1.0" encoding="UTF-8"?>
<monster name="Haunted Treeling" nameDescription="a haunted treeling" experience="310" speed="220" race="undead" manacost="0">
	<health now="450" max="450"/>
	<look type="310" corpse="9867"/>
	<targetchange interval="4000" chance="10"/>
	<flags>
        <flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="0"/>
		<flag staticattack="85"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="40" attack="60"/>
		<attack name="manadrain" interval="2000" chance="5" min="-30" max="-100" radius="4" target="0">
			<attribute key="areaEffect" value="greenbubble"/>
		</attack>
		<attack name="speed" interval="2000" chance="15" length="5" spread="0" duration="15000" speedchange="-700">
			<attribute key="areaEffect" value="smallplants"/>
		</attack>
		<attack name="physical" interval="2000" chance="15" range="7" target="1" radius="1" min="-0" max="-100">
			<attribute key="shootEffect" value="smallearth"/>
			<attribute key="areaEffect" value="carniphila"/>
		</attack>
		<attack name="earth" interval="2000" chance="10" min="-55" max="-100" radius="4" target="1">
			<attribute key="areaEffect" value="greenspark"/>
		</attack>
		<attack name="earth" interval="2000" chance="10" radius="1" target="0">
			<attribute key="areaEffect" value="poison"/>
		</attack>
	</attacks>
	<defenses armor="20" defense="20"/>
	<elements>
		<element firePercent="-5"/>
		<element deathPercent="1"/>
		<element icePercent="15"/>
		<element holyPercent="20"/>
	</elements>
	<immunities>
		<immunity earth="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="10">
		<voice sentence="Knarrrz"/>
		<voice sentence="Huuhuuhuuuhuuaarrr"/>
		<voice sentence="Knorrrrrr"/>
	</voices>
	<loot>
		<item id="2148" countmax="95" chance="60000"/><!-- gold coin -->
		<item id="4860" chance="25000"/><!-- wooden trash -->
		<item id="2788" chance="7142"/><!-- red mushroom -->
		<item id="2787" countmax="2" chance="5263"/><!-- white mushroom -->
		<item id="10600" chance="5000"/><!-- haunted piece of wood -->
		<item id="7618" chance="5000"/><!-- health potion -->
		<item id="2790" chance="1851"/><!-- orange mushroom -->
		<item id="7588" chance="900"/><!-- strong health potion -->
		<item id="2213" chance="621"/><!-- dwarven ring -->
		<item id="2146" chance="585"/><!-- small emerald -->
		<item id="7443" chance="80"/><!-- bullseye potion -->
	</loot>
</monster>
