hunter auto shot

This commit is contained in:
Yunfan Li
2023-10-04 10:17:55 +08:00
parent cc10cad03a
commit 69ff31b764

View File

@@ -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());
}