mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
fix(strategy): Revert InitTriggers to previous implementation (#1272)
Fixes #1169
Reverts TankAssistStrategy and DpsAssistStrategy InitTriggers implementations to their previous versions.
The changes from commit 24efa7e appeared to be optimizations without fixing any documented bugs, but were causing issues.
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
|
||||
#include "Playerbots.h"
|
||||
|
||||
NextAction** DpsAssistStrategy::getDefaultActions()
|
||||
void DpsAssistStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
return NextAction::array(
|
||||
0, new NextAction("dps assist", 50.0f),
|
||||
nullptr);
|
||||
triggers.push_back(
|
||||
new TriggerNode("not dps target active", NextAction::array(0, new NextAction("dps assist", 50.0f), nullptr)));
|
||||
}
|
||||
|
||||
void DpsAoeStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
|
||||
Reference in New Issue
Block a user