mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 14:42:25 +00:00
Clients will now receive exp / faction from their swarm pets kills ect.
This commit is contained in:
parent
cd33307975
commit
7dad77c080
@ -2103,6 +2103,18 @@ bool NPC::Death(Mob* killerMob, int32 damage, uint16 spell, SkillUseTypes attack
|
|||||||
#endif //BOTS
|
#endif //BOTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(give_exp && give_exp->IsTempPet() && give_exp->IsPetOwnerClient()) {
|
||||||
|
|
||||||
|
if (give_exp->IsNPC() && give_exp->CastToNPC()->GetSwarmOwner()){
|
||||||
|
Mob* temp_owner = nullptr;
|
||||||
|
temp_owner = entity_list.GetMobID(give_exp->CastToNPC()->GetSwarmOwner());
|
||||||
|
|
||||||
|
if (temp_owner)
|
||||||
|
give_exp = temp_owner;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int PlayerCount = 0; // QueryServ Player Counting
|
int PlayerCount = 0; // QueryServ Player Counting
|
||||||
|
|
||||||
Client *give_exp_client = nullptr;
|
Client *give_exp_client = nullptr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user