<?xml version="1.0" encoding="UTF-8"?>
<monster name="Mad Mage" nameDescription="mad mage" race="blood" experience="1800" speed="240" manacost="0">
	<health now="2200" max="2200"/>
	<look type="394" corpse="13603"/>
	<targetchange interval="5000" chance="30"/>
	<flags>
                <flag rewardboss="1" />
		<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="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="0" max="-30"/>
		<attack name="fire" interval="1000" chance="12" range="7" target="1" min="0" max="-200">
			<attribute key="shootEffect" value="fire"/>
		</attack>
		<attack name="manadrain" interval="1400" chance="24" range="6" min="0" max="-120">
			<attribute key="shootEffect" value="ice"/>
		</attack>
		<attack name="firefield" interval="1600" chance="20" range="7" radius="3" target="1">
			<attribute key="shootEffect" value="fire"/>
		</attack>
		<attack name="energy" interval="2000" chance="15" radius="4" target="0" min="-100" max="-200">
			<attribute key="areaEffect" value="bigclouds"/>
		</attack>
	</attacks>
	<defenses armor="20" defense="20">
		<defense name="healing" interval="2000" chance="25" min="35" max="80">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element physicalPercent="-20"/>
	</elements>
	<immunities>
		<immunity fire="1"/>
		<immunity energy="1"/>
		<immunity drunk="1"/>
		<immunity paralyze="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="1">
		<summon name="Golden Servant" interval="1000" chance="10"/>
	</summons>
	<voices interval="5000" chance="10">
		<voice sentence="Did it not come to your mind that I placed them here for a reason?"/>
		<voice sentence="Now I have to create new servants! Do you want to spread this pest beyond these safe walls?"/>
		<voice sentence="What have you done!"/>
	</voices>
	<loot>
		<item id="2148" countmax="340" chance="100000"/>	<!-- gold coin -->
		<item id="2152" countmax="5" chance="48000"/>		<!-- platinum coin -->
		<item id="7589" countmax="5" chance="21000"/>		<!-- strong mana potion -->
		<item id="7588" countmax="5" chance="17000"/>		<!-- strong health potion -->
		<item id="2178" chance="5000"/>						<!-- mind stone -->
		<item id="2165" chance="5000"/>						<!-- stealth ring -->
		<item id="7368" countmax="4" chance="4000"/>		<!-- assassin star -->
		<item id="2792" countmax="3" chance="4000"/>		<!-- dark mushroom -->
		<item id="5911" chance="3000"/>						<!-- red piece of cloth -->
		<item id="2150" countmax="3" chance="4000"/>		<!-- small amethyst -->
		<item id="13756" chance="3180"/>					<!-- mage's cap -->
		<item id="7443" chance="1100"/>						<!-- bullseye potion -->
		<item id="9941" chance="740"/>						<!-- crystal of focus -->
		<item id="2195" chance="370"/>						<!-- boots of haste -->
		<item id="12410" chance="370"/>						<!-- luminous orb -->
		<item id="2114" chance="370"/>						<!-- piggy bank -->
		<item id="2123" chance="370"/>						<!-- ring of the sky -->
		<item id="8901" chance="370"/>						<!-- spellbook of warding -->
	</loot>
</monster>
