Fix hunger for blood target

This commit is contained in:
Yunfan Li
2024-02-10 23:35:18 +08:00
parent f09d8d72f4
commit 87b274564f
3 changed files with 8 additions and 7 deletions

View File

@@ -42,20 +42,20 @@ NextAction** AssassinationRogueStrategy::getDefaultActions()
void AssassinationRogueStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
{
MeleeCombatStrategy::InitTriggers(triggers);
triggers.push_back(new TriggerNode(
"high energy available",
NextAction::array(0,
new NextAction("garrote", ACTION_HIGH + 0.3f),
new NextAction("ambush", ACTION_HIGH + 0.2f), nullptr)));
new NextAction("garrote", ACTION_HIGH + 7),
new NextAction("ambush", ACTION_HIGH + 6), nullptr)));
triggers.push_back(new TriggerNode(
"high energy available",
NextAction::array(0, new NextAction("mutilate", ACTION_NORMAL + 3), NULL)));
triggers.push_back(new TriggerNode(
"hunder for blood",
NextAction::array(0, new NextAction("hunder for blood", ACTION_HIGH + 6), NULL)));
"hunger for blood",
NextAction::array(0, new NextAction("hunger for blood", ACTION_HIGH + 6), NULL)));
triggers.push_back(new TriggerNode(
"slice and dice",

View File

@@ -91,8 +91,8 @@ void DpsRogueStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
triggers.push_back(new TriggerNode(
"high energy available",
NextAction::array(0,
new NextAction("garrote", ACTION_HIGH + 0.3f),
new NextAction("ambush", ACTION_HIGH + 0.2f), nullptr)));
new NextAction("garrote", ACTION_HIGH + 7),
new NextAction("ambush", ACTION_HIGH + 6), nullptr)));
triggers.push_back(new TriggerNode(
"high energy available",

View File

@@ -20,6 +20,7 @@ class CastHungerForBloodAction : public CastBuffSpellAction
{
public:
CastHungerForBloodAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "hunger for blood") { }
std::string const GetTargetName() override { return "current target"; }
};
class CastSprintAction : public CastBuffSpellAction