Merge pull request #1456 from brighton-chi/worldbuff

Make world buff strategy conditions configurable
This commit is contained in:
kadeshar
2025-07-27 12:32:26 +02:00
committed by GitHub
4 changed files with 55 additions and 128 deletions

View File

@@ -4,7 +4,6 @@
*/
#include "WorldBuffAction.h"
#include "AiFactory.h"
#include "Event.h"
#include "Playerbots.h"
@@ -13,11 +12,12 @@ bool WorldBuffAction::Execute(Event event)
{
std::string const text = event.getParam();
for (auto& wb : NeedWorldBuffs(bot))
std::vector<uint32> buffs = NeedWorldBuffs(bot); // Get matching buffs
for (auto& wb : buffs)
{
bot->AddAura(wb, bot);
}
return false;
}
@@ -70,7 +70,6 @@ std::vector<uint32> WorldBuffAction::NeedWorldBuffs(Unit* unit)
// If tank, effectiveSpec remains unchanged
}
for (auto const& wb : sPlayerbotAIConfig->worldBuffs)
{
// Faction check