mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 17:09:08 +00:00
pet react state & reach target for autoshoot
This commit is contained in:
@@ -16,8 +16,9 @@ bool ReachTargetAction::Execute(Event event)
|
||||
bool ReachTargetAction::isUseful()
|
||||
{
|
||||
// do not move while casting
|
||||
if (bot->IsNonMeleeSpellCast(true))
|
||||
if (bot->GetCurrentSpell(CURRENT_CHANNELED_SPELL) != nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return AI_VALUE2(float, "distance", GetTargetName()) > (distance + sPlayerbotAIConfig->contactDistance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user