mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
hunter auto shot
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user