mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-24 14:06:22 +00:00
remove aoe position
This commit is contained in:
@@ -1985,8 +1985,9 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
|
|||||||
}
|
}
|
||||||
else if (spellInfo->Targets & TARGET_FLAG_DEST_LOCATION)
|
else if (spellInfo->Targets & TARGET_FLAG_DEST_LOCATION)
|
||||||
{
|
{
|
||||||
WorldLocation aoe = aiObjectContext->GetValue<WorldLocation>("aoe position")->Get();
|
// WorldLocation aoe = aiObjectContext->GetValue<WorldLocation>("aoe position")->Get();
|
||||||
targets.SetDst(aoe);
|
// targets.SetDst(aoe);
|
||||||
|
targets.SetDst(*bot);
|
||||||
}
|
}
|
||||||
else if (spellInfo->Targets & TARGET_FLAG_SOURCE_LOCATION)
|
else if (spellInfo->Targets & TARGET_FLAG_SOURCE_LOCATION)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user