﻿<?xml version="1.0" encoding="utf-8"?>
<FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FightClassGeneralSettings>
    <FightClassName>ScripterQQ Warrior Arms Leveling</FightClassName>
    <FramePerSecond>25</FramePerSecond>
  </FightClassGeneralSettings>
  <FightClassSpells>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Buff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Battle Shout</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>IsSpellUsable</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Battle Shout</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Battle Shout</SpellName>
      <Priority>17</Priority>
      <CombatOnly>false</CombatOnly>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
      <CanMoveDuringCast>Yes</CanMoveDuringCast>
      <CastOnSelf>true</CastOnSelf>
      <CastOn>player</CastOn>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Battle Stance</SpellName>
      <Priority>16</Priority>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
      <CastIfMounted>true</CastIfMounted>
      <CheckIfKnow>false</CheckIfKnow>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>cankick = "no"
if UnitCastingInfo("target") ~= nil 
then
	local _, _, _, _, _, _, _, _, auramastery = UnitCastingInfo("target") 
		if auramastery == false 
                        and GetSpellCooldown("Pummel") == 0
		then
		cankick = "yes"
		end
end
</LuaScript>
            <VarRet>cankick</VarRet>
            <ValueRet>yes</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Berserker Stance</SpellName>
      <Priority>15</Priority>
      <DescriptionSpell>For Pummel</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>pummel = "no"
if UnitCastingInfo("target") ~= nil 
then
	local _, _, _, _, _, endCast, _, _, auramastery = UnitCastingInfo("target") 
		if ((endCast/1000) - GetTime()) &lt; 1
		and auramastery == false 
		then
		pummel = "yes"
		end
end
</LuaScript>
            <VarRet>pummel</VarRet>
            <ValueRet>yes</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Pummel</SpellName>
      <Priority>14</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>8</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>8</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Charge</SpellName>
      <Priority>13</Priority>
      <CombatOnly>false</CombatOnly>
      <CastIfMounted>true</CastIfMounted>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Rage</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Smaller</Type>
            <Value>15</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Bloodrage</SpellName>
      <Priority>12</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>UnitAttackPlayerNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>2</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Sweeping Strikes</SpellName>
      <Priority>11</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>70</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>UnitAttackPlayerNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>2</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Retaliation</SpellName>
      <Priority>10</Priority>
      <DescriptionSpell>&lt; 70% HP, 2+ Enemies</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Fleeing</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Berserker Rage</SpellName>
      <Priority>9</Priority>
      <CombatOnly>false</CombatOnly>
      <CastIfMounted>true</CastIfMounted>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
      <DescriptionSpell>Fleeing</DescriptionSpell>
      <CastOnSelf>true</CastOnSelf>
      <CastOn>player</CastOn>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HostileUnitNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>2</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Bladestorm</SpellName>
      <Priority>8</Priority>
      <DescriptionSpell>2+ Enemies</DescriptionSpell>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Victory Rush</SpellName>
      <Priority>7</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Overpower</SpellName>
      <Priority>6</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetBuffCastedByMe</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Rend</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>rend = "no"
if UnitCreatureType("target") ~= "Mechanical"
then
rend = "yes"
end</LuaScript>
            <VarRet>rend</VarRet>
            <ValueRet>yes</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Rend</SpellName>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Execute</SpellName>
      <Priority>4</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Slam</SpellName>
      <Priority>3</Priority>
      <AddToSettings>true</AddToSettings>
      <AddToSettingsActiveByDefault>true</AddToSettingsActiveByDefault>
      <AddToSettingsName>Use Slam</AddToSettingsName>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Heroic Strike</SpellName>
      <Priority>2</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>Blood Fury</SpellName>
      <Priority>1</Priority>
      <AddToSettings>true</AddToSettings>
      <AddToSettingsActiveByDefault>true</AddToSettingsActiveByDefault>
      <AddToSettingsName>use Blood Fury (orcs only)</AddToSettingsName>
      <CanMoveDuringCast>Yes</CanMoveDuringCast>
    </FightClassSpell>
  </FightClassSpells>
</FightClass>