mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00: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;
|
uint32 unDamage = health < damage ? health : damage;
|
||||||
bool damagedByPlayer = unDamage && attacker && (attacker->IsPlayer() || attacker->m_movedByPlayer != nullptr
|
bool damagedByPlayer = unDamage && attacker && (attacker->IsPlayer() || attacker->m_movedByPlayer != nullptr
|
||||||
|| attacker->GetCharmerOrOwnerGUID().IsPlayer());
|
|| attacker->GetCharmerGUID().IsPlayer());
|
||||||
victim->ToCreature()->LowerPlayerDamageReq(unDamage, damagedByPlayer);
|
victim->ToCreature()->LowerPlayerDamageReq(unDamage, damagedByPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user