From 69ff31b76434ad65030027c4dfdbe3d1e1092565 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Wed, 4 Oct 2023 10:17:55 +0800 Subject: [PATCH] hunter auto shot --- src/strategy/hunter/HunterActions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/strategy/hunter/HunterActions.cpp b/src/strategy/hunter/HunterActions.cpp index 31ac20b3..ee20b83d 100644 --- a/src/strategy/hunter/HunterActions.cpp +++ b/src/strategy/hunter/HunterActions.cpp @@ -40,7 +40,10 @@ bool CastAutoShotAction::isUseful() { if (botAI->IsInVehicle() && !botAI->IsInVehicle(false, false, true)) return false; - + + if (bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)) { + return false; + } return AI_VALUE(uint32, "active spell") != AI_VALUE2(uint32, "spell id", getName()); }