mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-28 00:31:30 +00:00
Merge pull request #320 from KayenEQ/Development
Clients will now receive exp / faction from their swarm pets kills ect.
This commit is contained in:
commit
45e71ff6d1
@ -2103,6 +2103,18 @@ bool NPC::Death(Mob* killerMob, int32 damage, uint16 spell, SkillUseTypes attack
|
||||
#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
|
||||
|
||||
Client *give_exp_client = nullptr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user