Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="The Imperor" nameDescription="the imperor" race="fire" experience="80" speed="330" manacost="0">
<health now="75000" max="75000"/>
<look type="237" corpse="6364"/>
<targetchange interval="5000" chance="5"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="3"/>
<flag staticattack="90"/>
<flag runonhealth="400"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="70" attack="60"/>
<attack name="fire" interval="1000" chance="100" range="7" radius="4" target="1" min="1500" max="1850">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="fire" interval="1000" chance="34" range="7" radius="2" target="1" min="2400" max="2500">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
</attacks>
<defenses armor="15" defense="15">
<defense name="healing" interval="1000" chance="50" min="75" max="125">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="40" speedchange="450" duration="40000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
<defense name="invisible" interval="4000" chance="50" duration="4000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element firePercent="100"/>
<element earthPercent="30"/>
<element deathPercent="25"/>
<element icePercent="-25"/>
<element holyPercent="-12"/>
</elements>
<immunities>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Muahaha!"/>
<voice sentence="He he he!"/>
</voices>
<loot>
<item id="2148" countmax="99" chance="50000"/><!-- gold coin -->
<item id="2148" countmax="98" chance="50000"/><!-- gold coin -->
<item id="2548" chance="50000"/><!-- pitch fork -->
<item id="6558" chance="25000"/><!-- concentrated demonic blood -->
<item id="6558" chance="25000"/><!-- concentrated demonic blood -->
<item id="6500" chance="5000"/><!-- demonic essence -->
<item id="2260" chance="10000"/><!-- blank rune -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="7900" chance="1200"/><!-- magma monocle -->
<item id="6300" chance="500"/><!-- death ring -->
<item id="7899" chance="900"/><!-- magma coat-->
<item id="2165" chance="2500"/><!-- stealth ring -->
<item id="2515" chance="10000"/><!-- guardian shield -->
<item id="2150" countmax="3" chance="2000"/><!-- small amethyst -->
<item id="2260" chance="10000"/><!-- blank rune -->
<item id="2387" chance="1500"/><!-- double axe -->
<item id="2568" chance="3000"/><!-- cleaver -->
<item id="2419" chance="8000"/><!-- scimitar -->
<item id="5944" chance="10000"/><!-- soul orb -->
<item id="2148" countmax="7" chance="600"/><!-- platinum coin -->
<item id="2185" chance="750"/><!-- necrotic rod -->
</inside>
</item>
</loot>
</monster>
I use this script for a monster but when it shoots the fire it heals instead of dealing damage?