mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[HotFix] Resolve issue with Bot Casting after zoning. (#2617)
This commit is contained in:
parent
318e487515
commit
ede3ed4df3
15
zone/bot.cpp
15
zone/bot.cpp
@ -4003,6 +4003,21 @@ bool Bot::Spawn(Client* botCharacterOwner) {
|
||||
|
||||
m_targetable = true;
|
||||
entity_list.AddBot(this, true, true);
|
||||
|
||||
GetBotOwnerDataBuckets();
|
||||
GetBotDataBuckets();
|
||||
LoadBotSpellSettings();
|
||||
if (!AI_AddBotSpells(GetBotSpellID())) {
|
||||
GetBotOwner()->CastToClient()->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Failed to load spells for '{}' (ID {}).",
|
||||
GetCleanName(),
|
||||
GetBotID()
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
// Load pet
|
||||
LoadPet();
|
||||
SentPositionPacket(0.0f, 0.0f, 0.0f, 0.0f, 0);
|
||||
|
||||
@ -6686,20 +6686,6 @@ void bot_subcommand_bot_spawn(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
my_bot->GetBotOwnerDataBuckets();
|
||||
my_bot->GetBotDataBuckets();
|
||||
my_bot->LoadBotSpellSettings();
|
||||
if (!my_bot->AI_AddBotSpells(my_bot->GetBotSpellID())) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Failed to load spells for '{}' (ID {}).",
|
||||
bot_name,
|
||||
bot_id
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
static std::string bot_spawn_message[17] = {
|
||||
"I am ready to fight!", // DEFAULT
|
||||
"A solid weapon is my ally!", // WARRIOR
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user