mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix
This commit is contained in:
parent
101c7f3046
commit
8a9a833c98
@ -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->GetAiObject<Unit>("current target");
|
Unit* target = bot->GetVictim();
|
||||||
if (target && !bot->IsWithinLOSInMap(target))
|
if (target && !bot->IsWithinLOSInMap(target))
|
||||||
{
|
{
|
||||||
float x, y, z;
|
float x, y, z;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user