From 87b274564fe227f34c9ff603d52a9cbbff17d879 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sat, 10 Feb 2024 23:35:18 +0800 Subject: [PATCH] Fix hunger for blood target --- src/strategy/rogue/AssassinationRogueStrategy.cpp | 10 +++++----- src/strategy/rogue/DpsRogueStrategy.cpp | 4 ++-- src/strategy/rogue/RogueActions.h | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/strategy/rogue/AssassinationRogueStrategy.cpp b/src/strategy/rogue/AssassinationRogueStrategy.cpp index e5ae8c1b..306b323a 100644 --- a/src/strategy/rogue/AssassinationRogueStrategy.cpp +++ b/src/strategy/rogue/AssassinationRogueStrategy.cpp @@ -42,20 +42,20 @@ NextAction** AssassinationRogueStrategy::getDefaultActions() void AssassinationRogueStrategy::InitTriggers(std::vector &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", diff --git a/src/strategy/rogue/DpsRogueStrategy.cpp b/src/strategy/rogue/DpsRogueStrategy.cpp index 69873f94..ad5ef8e6 100644 --- a/src/strategy/rogue/DpsRogueStrategy.cpp +++ b/src/strategy/rogue/DpsRogueStrategy.cpp @@ -91,8 +91,8 @@ void DpsRogueStrategy::InitTriggers(std::vector& 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", diff --git a/src/strategy/rogue/RogueActions.h b/src/strategy/rogue/RogueActions.h index e0224d54..4ddff1ce 100644 --- a/src/strategy/rogue/RogueActions.h +++ b/src/strategy/rogue/RogueActions.h @@ -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