﻿<?xml version="1.0" encoding="utf-16"?>
<FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FightClassGeneralSettings>
    <FightClassName>Mage</FightClassName>
    <Range>25</Range>
    <FramePerSecond>25</FramePerSecond>
  </FightClassGeneralSettings>
  <FightClassSpells>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Berskerking</SpellName>
      <Priority>12</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Frostbolt</SpellName>
      <Priority>11</Priority>
      <OncePerTarget>true</OncePerTarget>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Fire Blast</SpellName>
      <Priority>10</Priority>
      <Timer>8050</Timer>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>ItemCount</ContionType>
          <Param xsi:type="FightClassConditionItemNumber">
            <Number>1</Number>
            <Type>SmallerOrEqual</Type>
            <Id>5350</Id>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>IsSpellUsable</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Conjure Water</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>local count = GetItemCount(5350);
if (count &lt;= 1)
{
	local name = GetSpellInfo(29975);
	RunMacroText("/cast " .. name) 
}</SpellName>
      <Priority>9</Priority>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
      <Timer>2000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>ItemCount</ContionType>
          <Param xsi:type="FightClassConditionItemNumber">
            <Number>1</Number>
            <Type>SmallerOrEqual</Type>
            <Id>1113</Id>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>IsSpellUsable</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Conjure Food</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>local count = GetItemCount(1113);
if (count &lt;= 1)
{
	local name = GetSpellInfo(42955);
	RunMacroText("/cast " .. name) 
}
</SpellName>
      <Priority>8</Priority>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
      <Timer>2000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Buff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Dampen Magic</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Dampen Magic</SpellName>
      <Priority>7</Priority>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Buff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Arcane Intellect</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Arcane Intellect</SpellName>
      <Priority>6</Priority>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
      <CastOnSelf>true</CastOnSelf>
      <CastOn>player</CastOn>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Buff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Frost Armor</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Frost Armor</SpellName>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
      <CastOnSelf>true</CastOnSelf>
      <CastOn>player</CastOn>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Frostbolt</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Frostbolt</SpellName>
      <Priority>4</Priority>
      <Timer>1800</Timer>
      <CanMoveDuringCast>No</CanMoveDuringCast>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Frost Nova</SpellName>
      <Priority>3</Priority>
      <AOESpellMePos>true</AOESpellMePos>
      <CanMoveDuringCast>No</CanMoveDuringCast>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>5</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Blink</SpellName>
      <Priority>2</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Fireball</SpellName>
      <Priority>1</Priority>
      <Timer>2750</Timer>
    </FightClassSpell>
  </FightClassSpells>
</FightClass>