From 9ca93855fe9bb561a2e203417e7a7218c257c6c0 Mon Sep 17 00:00:00 2001 From: Bobblybook Date: Thu, 31 Oct 2024 22:13:05 +1100 Subject: [PATCH] Fix healer and tank multiplier on Krikthir --- .../dungeons/wotlk/azjolnerub/AzjolNerubMultipliers.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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())