mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
Fix for bot pets not updating their health (probably not the best fix..but, it works...)
This commit is contained in:
parent
4d1d9df05d
commit
5e60fcdc0c
19
zone/mob.cpp
19
zone/mob.cpp
@ -1435,6 +1435,25 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BOTS
|
||||
if (GetOwner() && GetOwner()->IsBot() && GetOwner()->CastToBot()->GetBotOwner() && GetOwner()->CastToBot()->GetBotOwner()->IsClient()) {
|
||||
auto bot_owner = GetOwner()->CastToBot()->GetBotOwner()->CastToClient();
|
||||
if (bot_owner) {
|
||||
bot_owner->QueuePacket(&hp_packet, false);
|
||||
group = entity_list.GetGroupByClient(bot_owner);
|
||||
|
||||
if (group) {
|
||||
group->SendHPPacketsFrom(this);
|
||||
}
|
||||
|
||||
Raid *raid = entity_list.GetRaidByClient(bot_owner);
|
||||
if (raid) {
|
||||
raid->SendHPManaEndPacketsFrom(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (GetPet() && GetPet()->IsClient()) {
|
||||
GetPet()->CastToClient()->QueuePacket(&hp_packet, false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user