mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 02:10:28 +00:00
[Attack Target] Prioritized targets
This commit is contained in:
@@ -36,7 +36,8 @@ bool AttackMyTargetAction::Execute(Event event)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Set({guid});
|
||||
bool result = Attack(botAI->GetUnit(guid));
|
||||
if (result)
|
||||
context->GetValue<ObjectGuid>("pull target")->Set(guid);
|
||||
|
||||
Reference in New Issue
Block a user