mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[HP Updates] Resolved an issue when a player is swapped to a group in a raid - mana and endurance shows empty to group members
This commit is contained in:
parent
0663e9cb6f
commit
ad7dfc31a9
File diff suppressed because it is too large
Load Diff
@ -1383,7 +1383,7 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
|
||||
if(IsClient()){
|
||||
Raid *raid = entity_list.GetRaidByClient(CastToClient());
|
||||
if (raid)
|
||||
raid->SendHPPacketsFrom(this);
|
||||
raid->SendHPManaEndPacketsFrom(this);
|
||||
}
|
||||
|
||||
/* Pet - Update master - group and raid if exists */
|
||||
@ -1396,7 +1396,7 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
|
||||
|
||||
Raid *raid = entity_list.GetRaidByClient(GetOwner()->CastToClient());
|
||||
if(raid)
|
||||
raid->SendHPPacketsFrom(this);
|
||||
raid->SendHPManaEndPacketsFrom(this);
|
||||
}
|
||||
|
||||
/* Send to pet */
|
||||
|
||||
@ -149,7 +149,7 @@ void Raid::AddMember(Client *c, uint32 group, bool rleader, bool groupleader, bo
|
||||
raid_update = c->GetRaid();
|
||||
if (raid_update) {
|
||||
raid_update->SendHPManaEndPacketsTo(c);
|
||||
raid_update->SendHPPacketsFrom(c);
|
||||
raid_update->SendHPManaEndPacketsFrom(c);
|
||||
}
|
||||
|
||||
auto pack = new ServerPacket(ServerOP_RaidAdd, sizeof(ServerRaidGeneralAction_Struct));
|
||||
@ -1591,7 +1591,7 @@ void Raid::SendHPManaEndPacketsTo(Client *client)
|
||||
}
|
||||
}
|
||||
|
||||
void Raid::SendHPPacketsFrom(Mob *mob)
|
||||
void Raid::SendHPManaEndPacketsFrom(Mob *mob)
|
||||
{
|
||||
if(!mob)
|
||||
return;
|
||||
|
||||
@ -174,7 +174,7 @@ public:
|
||||
void VerifyRaid();
|
||||
void MemberZoned(Client *c);
|
||||
void SendHPManaEndPacketsTo(Client *c);
|
||||
void SendHPPacketsFrom(Mob *mob);
|
||||
void SendHPManaEndPacketsFrom(Mob *mob);
|
||||
void SendManaPacketFrom(Mob *mob);
|
||||
void SendEndurancePacketFrom(Mob *mob);
|
||||
void RaidSay(const char *msg, Client *c);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user