mirror of
https://github.com/araxiaonline/AzerothCore-wotlk-with-NPCBots.git
synced 2026-06-13 03:22:24 -04:00
fix(Core/Pets): Mob solod by pet no longer grant exp/loot to its master (#25676)
This commit is contained in:
@@ -1229,7 +1229,7 @@ uint32 Unit::DealDamage(Unit* attacker, Unit* victim, uint32 damage, CleanDamage
|
||||
{
|
||||
uint32 unDamage = health < damage ? health : damage;
|
||||
bool damagedByPlayer = unDamage && attacker && (attacker->IsPlayer() || attacker->m_movedByPlayer != nullptr
|
||||
|| attacker->GetCharmerOrOwnerGUID().IsPlayer());
|
||||
|| attacker->GetCharmerGUID().IsPlayer());
|
||||
victim->ToCreature()->LowerPlayerDamageReq(unDamage, damagedByPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user