From ebfd338af0248bcc3aaec56bb5db7b1b624c9bc9 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Thu, 1 Jun 2023 22:57:08 +0800 Subject: [PATCH] remove aoe position --- src/PlayerbotAI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index daa276f1..b5978db8 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -1985,8 +1985,9 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget) } else if (spellInfo->Targets & TARGET_FLAG_DEST_LOCATION) { - WorldLocation aoe = aiObjectContext->GetValue("aoe position")->Get(); - targets.SetDst(aoe); + // WorldLocation aoe = aiObjectContext->GetValue("aoe position")->Get(); + // targets.SetDst(aoe); + targets.SetDst(*bot); } else if (spellInfo->Targets & TARGET_FLAG_SOURCE_LOCATION) {