mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Make world buff strategy conditions configurable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user