Make world buff strategy conditions configurable

This commit is contained in:
crow
2025-07-19 21:41:06 -05:00
parent d6b7693b8b
commit 0b03b277c2
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