diff --git a/src/strategy/dungeons/wotlk/azjolnerub/AzjolNerubMultipliers.cpp b/src/strategy/dungeons/wotlk/azjolnerub/AzjolNerubMultipliers.cpp index 38cb9e9a..036d79c3 100644 --- a/src/strategy/dungeons/wotlk/azjolnerub/AzjolNerubMultipliers.cpp +++ b/src/strategy/dungeons/wotlk/azjolnerub/AzjolNerubMultipliers.cpp @@ -8,15 +8,17 @@ float KrikthirMultiplier::GetValue(Action* action) { + if (!botAI->IsDps(bot)) { return 1.0f; } + // Target is not findable from threat table using AI_VALUE2(), // therefore need to search manually for the unit name Unit* boss = nullptr; Unit* watcher = nullptr; - GuidVector targets = AI_VALUE(GuidVector, "possible targets no los"); - for (auto i = targets.begin(); i != targets.end(); ++i) + GuidVector targets = AI_VALUE(GuidVector, "possible targets no los"); + for (auto& target : targets) { - Unit* unit = botAI->GetUnit(*i); + Unit* unit = botAI->GetUnit(target); if (!unit) { continue; } switch (unit->GetEntry())