mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 02:38:45 +00:00
TempPet owned by bots that get the kill will now give exp like a client would
This commit is contained in:
+3
-1
@@ -2625,9 +2625,11 @@ bool NPC::Death(Mob* killer_mob, int64 damage, uint16 spell, EQ::skills::SkillTy
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
give_exp->IsInGroupOrRaid(give_exp->GetUltimateOwner(), RuleB(Bots, SameRaidGroupForXP)) ||
|
give_exp->IsInGroupOrRaid(give_exp->GetUltimateOwner(), RuleB(Bots, SameRaidGroupForXP)) ||
|
||||||
|
(
|
||||||
give_exp->IsPet() &&
|
give_exp->IsPet() &&
|
||||||
give_exp->GetOwner() &&
|
give_exp->GetOwner() &&
|
||||||
give_exp->GetOwner()->IsInGroupOrRaid(give_exp->GetUltimateOwner(), RuleB(Bots, SameRaidGroupForXP))
|
give_exp->GetOwner()->IsInGroupOrRaid(give_exp->GetUltimateOwner(), RuleB(Bots, SameRaidGroupForXP))
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
owner_in_group = true;
|
owner_in_group = true;
|
||||||
}
|
}
|
||||||
@@ -2639,7 +2641,7 @@ bool NPC::Death(Mob* killer_mob, int64 damage, uint16 spell, EQ::skills::SkillTy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (give_exp && give_exp->IsTempPet() && give_exp->IsPetOwnerClient()) {
|
if (give_exp && give_exp->IsTempPet() && (give_exp->IsPetOwnerClient() || give_exp->IsPetOwnerBot())) {
|
||||||
if (give_exp->IsNPC() && give_exp->CastToNPC()->GetSwarmOwner()) {
|
if (give_exp->IsNPC() && give_exp->CastToNPC()->GetSwarmOwner()) {
|
||||||
Mob* temp_owner = entity_list.GetMobID(give_exp->CastToNPC()->GetSwarmOwner());
|
Mob* temp_owner = entity_list.GetMobID(give_exp->CastToNPC()->GetSwarmOwner());
|
||||||
if (temp_owner) {
|
if (temp_owner) {
|
||||||
|
|||||||
Reference in New Issue
Block a user