﻿<?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>Beastmaster</FightClassName>
    <Range>80</Range>
    <Pet>true</Pet>
    <PetCallSpellName>Call Pet 4</PetCallSpellName>
    <FramePerSecond>1000</FramePerSecond>
  </FightClassGeneralSettings>
  <FightClassSpells>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>PetHealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber" />
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Heart of the Phoenix</SpellName>
      <Priority>23</Priority>
      <CheckIfKnow>false</CheckIfKnow>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Smaller</Type>
            <Value>25</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Exhilaration</SpellName>
      <Priority>22</Priority>
      <CheckIfKnow>false</CheckIfKnow>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>15</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Feign Death</SpellName>
      <Priority>21</Priority>
      <DescriptionSpell>Emergency Legendary Head Heal</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>10</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Aspect of the Turtle</SpellName>
      <Priority>20</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>70</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Spirit Mend</SpellName>
      <Priority>19</Priority>
      <CheckIfKnow>false</CheckIfKnow>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CastOnSelf>true</CastOnSelf>
      <CastOn>player</CastOn>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Concussive Shot</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>TargetTargetingMe</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Concussive Shot</SpellName>
      <Priority>18</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetTargetingMe</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CombatStartSinceMs</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>3000</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Misdirection</SpellName>
      <Priority>17</Priority>
      <CastOn>pet</CastOn>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>DistancePetToTarget</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>45</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>3000</Number>
            <Type>SmallerOrEqual</Type>
            <Name>Kill Command</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>Focus</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>100</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Bestial Wrath</SpellName>
      <Priority>16</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>BuffTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>6000</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Dire Beast</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Titan's Thunder</SpellName>
      <Priority>15</Priority>
      <CheckIfKnow>false</CheckIfKnow>
      <DescriptionSpell>Dire Beast Window</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>BuffTimeLeftPet</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>8000</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Bestial Wrath</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Titan's Thunder</SpellName>
      <Priority>14</Priority>
      <DescriptionSpell>Bestail Wrath Active</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HostileUnitNearTarget</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>4</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Multi-Shot</SpellName>
      <Priority>13</Priority>
      <DescriptionSpell>Multi Spam for Surge of the Storm God Procs</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HostileUnitNearTarget</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>2</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>PetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Beast Cleave</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Multi-Shot</SpellName>
      <Priority>12</Priority>
      <CheckIfView>false</CheckIfView>
      <DescriptionSpell>Refresh Beast Cleave on 2 or More Targets</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>5000</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Bestial Wrath</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Dire Beast</SpellName>
      <Priority>11</Priority>
      <CheckIfKnow>false</CheckIfKnow>
      <CheckSpellDistance>false</CheckSpellDistance>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Focus</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>100</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>1300</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Kill Command</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>1300</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Dire Beast</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Cobra Shot</SpellName>
      <Priority>10</Priority>
      <DescriptionSpell>Emergency Focus Dump</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>A Murder of Crows</SpellName>
      <Priority>9</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>isKeyCurrentlyDown = IsAltKeyDown();</LuaScript>
            <VarRet>isKeyCurrentlyDown</VarRet>
            <ValueRet>true</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Aspect of the Wild</SpellName>
      <Priority>8</Priority>
      <DescriptionSpell>Manual activation - Alt Key</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>BuffTimeLeftPet</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>10000</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Bestial Wrath</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>TargetIsBoss</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Aspect of the Wild</SpellName>
      <Priority>7</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>DistancePetToTarget</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>45</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>PetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Bestial Wrath</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Kill Command</SpellName>
      <Priority>6</Priority>
      <DescriptionSpell>Bestial Wrath Active</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>DistancePetToTarget</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>45</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HostileUnitNearTarget</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>3</Number>
            <Type>SmallerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>5000</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Bestial Wrath</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Kill Command</SpellName>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>1300</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Kill Command</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>PetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Bestial Wrath</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>Focus</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>40</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Cobra Shot</SpellName>
      <Priority>4</Priority>
      <DescriptionSpell>Kill Command Active</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Focus</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Bigger</Type>
            <Value>40</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>25000</Number>
            <Type>Bigger</Type>
            <Name>Bestial Wrath</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HostileUnitNearTarget</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>3</Number>
            <Type>SmallerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>1300</Number>
            <Type>Bigger</Type>
            <Name>Kill Command</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CooldownTimeLeft</ContionType>
          <Param xsi:type="FightClassConditionBuffStack">
            <Number>1300</Number>
            <Type>BiggerOrEqual</Type>
            <Name>Dire Beast</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Cobra Shot</SpellName>
      <Priority>3</Priority>
      <DescriptionSpell>Focus Dump</DescriptionSpell>
      <WaitDuringCasting>false</WaitDuringCasting>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>PetHealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Smaller</Type>
            <Value>70</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Mend Pet</SpellName>
      <Priority>2</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>if UnitExists("target") and not UnitIsFriend("player", "target") then\n   PetAttack("target");\n else\n   PetFollow();\n end\n\n</SpellName>
      <Priority>1</Priority>
      <CombatOnly>false</CombatOnly>
      <CheckIfKnow>false</CheckIfKnow>
      <CheckIfSpellUsable>false</CheckIfSpellUsable>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <CanMoveDuringCast>Yes</CanMoveDuringCast>
    </FightClassSpell>
  </FightClassSpells>
</FightClass>