After upgrading some spells are unknown . This caused the bot to stop working correctly .
Look at the log:
[D] 20:17:22 - Spell(string spellName): spellName=Incinerate, Id found: 178071, Name found: Incinerate, NameInGame found: Incinerate, know = False
[D] 20:17:22 - Spell(string spellName): spellName=Immolate, Id found: 169998, Name found: Immolate, NameInGame found: Immolate, know = False
My complete custom fightclass:
<?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>Fight config name</FightClassName>
<Range>40</Range>
<PetCallSpellName>Summon Voidwalker</PetCallSpellName>
</FightClassGeneralSettings>
<FightClassSpells>
<FightClassSpell>
<SpellName>Dark Intent</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Dark Intent</Name>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>31</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Flames of Xoroth</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
<FightClassCondition>
<ContionType>PetHealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber" />
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power > 0) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>30</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Flames of Xoroth</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HavePet</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power > 0) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>29</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Felhunter</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>TargetIsPlayer</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HavePet</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
</FightClassConditions>
<Priority>28</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Voidwalker</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>HavePet</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInGroup</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
</FightClassConditions>
<Priority>27</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Imp</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInGroup</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HavePet</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetIsPlayer</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
</FightClassConditions>
<Priority>26</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Blood Horror</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>UnitAttackPlayerNear</ContionType>
<Param xsi:type="FightClassConditionUnitNear">
<Number>2</Number>
<Type>BiggerOrEqual</Type>
<Radius>10</Radius>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>25</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>fCount = GetItemCount(5512);
if fCount > 0 then
local iName = GetItemInfo(5512);
UseItemByName(iName);
end</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber">
<Type>SmallerOrEqual</Type>
<Value>70</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>IsSpellUsable</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Healthstone</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>24</Priority>
<NotSpellIsLuaScript>true</NotSpellIsLuaScript>
</FightClassSpell>
<FightClassSpell>
<SpellName>Ember Tap</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber">
<Type>SmallerOrEqual</Type>
<Value>60</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power > 0) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>23</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Soulstone</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Soulstone</Name>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>22</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Create Healthstone</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>Count = GetItemCount(5512);if (Count == 0) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>21</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Dark Bargain</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>HealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber">
<Type>SmallerOrEqual</Type>
<Value>40</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>20</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Unending Resolve</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber">
<Type>SmallerOrEqual</Type>
<Value>60</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>19</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Soulshatter</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>HealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber">
<Type>SmallerOrEqual</Type>
<Value>60</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>UnitAttackPlayerNear</ContionType>
<Param xsi:type="FightClassConditionUnitNear">
<Number>1</Number>
<Type>BiggerOrEqual</Type>
<Radius>30</Radius>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>18</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Abyssal</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>PetHealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber" />
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInGroup</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
</FightClassConditions>
<Priority>17</Priority>
<AOESpell>true</AOESpell>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Abyssal</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInGroup</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
<FightClassCondition>
<ContionType>HealthPercent</ContionType>
<Param xsi:type="FightClassConditionNumber">
<Type>SmallerOrEqual</Type>
<Value>40</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>16</Priority>
<AOESpell>true</AOESpell>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Abyssal</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>HostileUnitNear</ContionType>
<Param xsi:type="FightClassConditionUnitNear">
<Number>3</Number>
<Type>BiggerOrEqual</Type>
<Radius>40</Radius>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInGroup</ContionType>
<Param xsi:type="FightClassConditionBool" />
</FightClassCondition>
</FightClassConditions>
<Priority>15</Priority>
<AOESpell>true</AOESpell>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Terrorguard</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetIsBoss</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>14</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Summon Terrorguard</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>TargetIsWorldBoss</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>13</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Rain of Fire</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetBuff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Immolate</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power < 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetBuff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Rain of Fire</Name>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>12</Priority>
<AOESpell>true</AOESpell>
</FightClassSpell>
<FightClassSpell>
<SpellName>Fire and Brimstone</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>HostileUnitNear</ContionType>
<Param xsi:type="FightClassConditionUnitNear">
<Number>3</Number>
<Type>BiggerOrEqual</Type>
<Radius>30</Radius>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Dark Soul: Instability</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power == 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>11</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Havoc</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Dark Soul: Instability</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power == 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>10</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Dark Soul</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Dark Soul: Instability</Name>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power == 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>9</Priority>
<IsBuff>true</IsBuff>
<Timer>1000</Timer>
</FightClassSpell>
<FightClassSpell>
<SpellName>Chaos Bolt</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Dark Soul: Instability</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power > 1) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Fire and Brimstone</Name>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>8</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Immolate</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetBuff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Immolate</Name>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power < 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>7</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Immolate</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Fire and Brimstone</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetBuff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Immolate</Name>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>6</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Conflagrate</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>Buff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Fire and Brimstone</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>TargetBuff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Immolate</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
</FightClassConditions>
</FightClassSpell>
<FightClassSpell>
<SpellName>Conflagrate</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>TargetBuff</ContionType>
<Param xsi:type="FightClassConditionStringBool">
<Name>Immolate</Name>
<Need>true</Need>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>4</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Incinerate</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power < 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>3</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Chaos Bolt</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
<FightClassCondition>
<ContionType>LuaScript</ContionType>
<Param xsi:type="FightClassConditionLua">
<LuaScript>power = UnitPower("player", 14);if (power == 4) then retV = "1";else retV = "0";end</LuaScript>
<VarRet>retV</VarRet>
<ValueRet>1</ValueRet>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>2</Priority>
</FightClassSpell>
<FightClassSpell>
<SpellName>Shadowfury</SpellName>
<FightClassConditions>
<FightClassCondition>
<ContionType>MeInCombat</ContionType>
<Param xsi:type="FightClassConditionBool">
<Value>true</Value>
</Param>
</FightClassCondition>
</FightClassConditions>
<Priority>1</Priority>
<Timer>200</Timer>
<AOESpell>true</AOESpell>
</FightClassSpell>
</FightClassSpells>
</FightClass>