Rogue spell cast optimize

This commit is contained in:
Yunfan Li
2024-02-09 23:51:03 +08:00
parent a7e33a6fad
commit c40a1bed67
6 changed files with 26 additions and 2 deletions

View File

@@ -35,6 +35,8 @@ AssassinationRogueStrategy::AssassinationRogueStrategy(PlayerbotAI* ai) : MeleeC
NextAction** AssassinationRogueStrategy::getDefaultActions()
{
return NextAction::array(0,
new NextAction("garrote", ACTION_DEFAULT + 0.2f),
new NextAction("ambush", ACTION_DEFAULT + 0.1f),
new NextAction("melee", ACTION_DEFAULT),
NULL);
}
@@ -47,6 +49,10 @@ void AssassinationRogueStrategy::InitTriggers(std::vector<TriggerNode*> &trigger
"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)));
triggers.push_back(new TriggerNode(
"slice and dice",
NextAction::array(0, new NextAction("slice and dice", ACTION_HIGH + 5), NULL)));