diff --git a/src/server/game/AI/NpcBots/bot_ai.cpp b/src/server/game/AI/NpcBots/bot_ai.cpp index d0684752df64de..5451903c840d42 100644 --- a/src/server/game/AI/NpcBots/bot_ai.cpp +++ b/src/server/game/AI/NpcBots/bot_ai.cpp @@ -18794,7 +18794,7 @@ WanderNode const* bot_ai::GetNextWanderNode(Position const* fromPos, uint8 lvl, llinks.push_back(&wpl); } if (llinks.size() > 1 && _travel_node_last && !_travel_node_cur->HasFlag(BotWPFlags::BOTWP_FLAG_CAN_BACKTRACK_FROM)) - llinks.remove_if([=](WanderNodeLink const* wpl) { return wpl->wp == _travel_node_last; }); + llinks.remove_if([this](WanderNodeLink const* wpl) { return wpl->wp == _travel_node_last; }); if (!llinks.empty()) { WanderNodeLink const* wpl = llinks.size() == 1u ? llinks.front() : *Acore::Containers::SelectRandomWeightedContainerElement(llinks, LinkWeightExtractor()); @@ -18859,7 +18859,7 @@ WanderNode const* bot_ai::GetNextBGTravelNode() const links.push_back(wpl); } if (links.size() > 1 && _travel_node_last && !curNode->HasFlag(BotWPFlags::BOTWP_FLAG_CAN_BACKTRACK_FROM)) - links.remove_if([=](WanderNodeLink const& wpl) { return wpl.Id() == _travel_node_last->GetWPId(); }); + links.remove_if([this](WanderNodeLink const& wpl) { return wpl.Id() == _travel_node_last->GetWPId(); }); BattlegroundAV* av = dynamic_cast(bg); // Above all: check conditions to rush final boss @@ -19210,7 +19210,7 @@ WanderNode const* bot_ai::GetNextBGTravelNode() const links.push_back(wpl); } if (links.size() > 1 && _travel_node_last && !curNode->HasFlag(BotWPFlags::BOTWP_FLAG_CAN_BACKTRACK_FROM)) - links.remove_if([=](WanderNodeLink const& wpl) { return wpl.Id() == _travel_node_last->GetWPId(); }); + links.remove_if([this](WanderNodeLink const& wpl) { return wpl.Id() == _travel_node_last->GetWPId(); }); BattlegroundWS* ws = dynamic_cast(bg); diff --git a/src/server/game/AI/NpcBots/bot_rogue_ai.cpp b/src/server/game/AI/NpcBots/bot_rogue_ai.cpp index f907937a9bddfb..cdc0efc7c13870 100644 --- a/src/server/game/AI/NpcBots/bot_rogue_ai.cpp +++ b/src/server/game/AI/NpcBots/bot_rogue_ai.cpp @@ -499,7 +499,7 @@ class rogue_bot : public CreatureScript if (mytar->IsControlledByPlayer() || me->GetHealthPct() < 25.f) { //Vanish (no GCD) - if (IsSpellReady(VANISH_1, diff, false) && !stealthed && !shadowdance && !IsTank() && Rand() < 45 && !me->HasAuraType(SPELL_AURA_PERIODIC_DAMAGE) || !IsFlagCarrier(me)) + if (IsSpellReady(VANISH_1, diff, false) && !stealthed && !shadowdance && !IsTank() && Rand() < 45 && !me->HasAuraType(SPELL_AURA_PERIODIC_DAMAGE) && !IsFlagCarrier(me)) { bool cast = false; //case 1: restealth for opener