mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +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,15 +7,8 @@
|
||||
|
||||
#include "Playerbots.h"
|
||||
|
||||
NextAction** TankAssistStrategy::getDefaultActions()
|
||||
void TankAssistStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
return NextAction::array(
|
||||
0, new NextAction("tank assist", 50.0f),
|
||||
nullptr);
|
||||
triggers.push_back(
|
||||
new TriggerNode("tank assist", NextAction::array(0, new NextAction("tank assist", 50.0f), nullptr)));
|
||||
}
|
||||
|
||||
// void TankAssistStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
// {
|
||||
// triggers.push_back(
|
||||
// new TriggerNode("tank assist", NextAction::array(0, new NextAction("tank assist", 50.0f), nullptr)));
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user