This commit is contained in:
EricksOliveira
2025-07-27 18:45:04 -03:00
committed by GitHub
parent d8d94f33ee
commit 101c7f3046

View File

@@ -4163,7 +4163,7 @@ bool ArenaTactics::Execute(Event event)
botAI->ChangeStrategy("-buff", BOT_STATE_NON_COMBAT); botAI->ChangeStrategy("-buff", BOT_STATE_NON_COMBAT);
// Repositioning if the target is out of line of sight // Repositioning if the target is out of line of sight
Unit* target = botAI->GetCombatTarget(); Unit* target = botAI->GetAiObject<Unit>("current target");
if (target && !bot->IsWithinLOSInMap(target)) if (target && !bot->IsWithinLOSInMap(target))
{ {
float x, y, z; float x, y, z;