facing to & reach party member to resurrect

This commit is contained in:
Yunfan Li
2023-09-14 23:29:09 +08:00
parent 0343ac5714
commit a24e60f03d
14 changed files with 60 additions and 20 deletions

View File

@@ -7,6 +7,7 @@
#include "Event.h"
#include "ItemUsageValue.h"
#include "Playerbots.h"
#include "ServerFacade.h"
uint32 FindLastSeparator(std::string const text, std::string const sep)
{
@@ -99,7 +100,7 @@ bool CastCustomSpellAction::Execute(Event event)
if (target != bot && !bot->HasInArc(CAST_ANGLE_IN_FRONT, target, sPlayerbotAIConfig->sightDistance))
{
bot->SetFacingToObject(target);
sServerFacade->SetFacingTo(bot, target);
botAI->SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
msg << "cast " << text;