fix(Core/Pets): Mob solod by pet no longer grant exp/loot to its master (#25676)

This commit is contained in:
sogladev
2026-05-01 16:48:22 +02:00
committed by GitHub
parent 866bcc1b62
commit de8b5e5726

View File

@@ -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);
}
}