<?xml version="1.0" encoding="UTF-8"?>
<monster name="Warlock" nameDescription="a warlock" race="blood" experience="4000" speed="220" manacost="0">
	<health now="3500" max="3500"/>
	<look type="130" head="19" body="71" legs="128" feet="128" addons="1" corpse="20530"/>
	<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="4"/>
		<flag staticattack="90"/>
		<flag runonhealth="900"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="0" max="-130"/>
		<attack name="fire" interval="2000" chance="20" range="7" radius="3" target="1" min="0" max="-180">
			<attribute key="shootEffect" value="burstarrow"/>
			<attribute key="areaEffect" value="firearea"/>
		</attack>
		<attack name="firefield" interval="2000" chance="10" range="7" radius="2" target="1">
			<attribute key="shootEffect" value="fire"/>
		</attack>
		<attack name="energy" interval="2000" chance="25" range="7" min="-90" max="-180">
			<attribute key="shootEffect" value="energy"/>
		</attack>
		<attack name="energy" interval="2000" chance="10" length="8" spread="0" min="-150" max="-230">
			<attribute key="areaEffect" value="bigclouds"/>
		</attack>
		<attack name="manadrain" interval="2000" chance="10" range="7" min="0" max="-120"/>
		<attack name="speed" interval="2000" chance="15" range="7" speedchange="-300" duration="20000">
			<attribute key="areaEffect" value="redshimmer"/>
		</attack>
		<attack name="warlock skill reducer" range="5" interval="2000" chance="5"/>
	</attacks>
	<defenses armor="20" defense="20">
		<defense name="healing" interval="2000" chance="20" min="100" max="225">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="invisible" interval="2000" chance="20" duration="10000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element earthPercent="95"/>
		<element holyPercent="-5"/>
		<element physicalPercent="-5"/>
	</elements>
	<immunities>
		<immunity fire="1"/>
		<immunity energy="1"/>
		<immunity ice="1"/>
		<immunity paralyze="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="1">
		<summon name="Stone Golem" interval="2000" chance="10"/>
	</summons>
	<voices interval="5000" chance="10">
		<voice sentence="Learn the secret of our magic! YOUR death!"/>
		<voice sentence="Even a rat is a better mage than you."/>
		<voice sentence="We don't like intruders!"/>
	</voices>
	<loot>
		<item id="2148" countmax="80" chance="30000"/>	<!-- gold coin -->
		<item id="2679" countmax="4" chance="19000"/>	<!-- cherry -->
		<item id="2689" chance="9000"/>					<!-- bread -->
		<item id="2411" chance="7600"/>					<!-- poison dagger -->
		<item id="2436" chance="6330"/>					<!-- skull staff -->
		<item id="7591" chance="5190"/>					<!-- great health potion -->
		<item id="7590" chance="4760"/>					<!-- great mana potion -->
		<item id="7368" countmax="4" chance="3500"/>	<!-- assassin star -->
		<item id="2792" chance="3000"/>					<!-- dark mushroom -->
		<item id="2167" chance="2200"/>					<!-- energy ring -->
		<item id="2178" chance="2000"/>					<!-- mind stone -->
		<item id="2047" chance="1500"/>					<!-- candlestick -->
		<item id="2656" chance="1390"/>					<!-- blue robe -->
		<item id="2146" chance="1190"/>					<!-- small sapphire -->
		<item id="2151" chance="1160"/>					<!-- talon -->
		<item id="7898" chance="1040"/>					<!-- lightning robe -->
		<item id="2600" chance="1000"/>					<!-- inkwell -->
		<item id="2124" chance="670"/>					<!-- crystal ring -->
		<item id="12410" chance="500"/>					<!-- luminous orb -->
		<item id="2123" chance="420"/>					<!-- ring of the sky -->
		<item id="2197" chance="320"/>					<!-- stone skin amulet -->
		<item id="1986" chance="310"/>					<!-- red tome -->
		<item id="2466" chance="240"/>					<!-- golden armor -->
		<item id="2114" chance="60"/>					<!-- piggy bank -->
	</loot>
</monster>
