fix hunter auto shot

This commit is contained in:
Yunfan Li
2023-07-30 15:46:11 +08:00
parent ced13e5370
commit 252b2f259c
6 changed files with 9 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ bool CastAutoShotAction::isUseful()
if (botAI->IsInVehicle() && !botAI->IsInVehicle(false, false, true))
return false;
return botAI->HasStrategy("ranged", BOT_STATE_COMBAT) && AI_VALUE(uint32, "active spell") != AI_VALUE2(uint32, "spell id", getName());
return AI_VALUE(uint32, "active spell") != AI_VALUE2(uint32, "spell id", getName());
}
Value<Unit*>* CastScareBeastCcAction::GetTargetValue()