mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[HotFix] Resolve issue with Bot Casting after zoning. (#2617)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user