mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Player: do not consider FLAG_EXTRA_NO_XP_AT_KILL or pet status when deciding if a creature counts as a "gives experience or honor" target. (#24884)
Closes #23860
(cherry picked from commit e3bac11837)
This commit is contained in:
@@ -25658,7 +25658,7 @@ bool Player::isHonorOrXPTarget(Unit const* victim) const
|
||||
|
||||
if (Creature const* const creature = victim->ToCreature())
|
||||
{
|
||||
if (!creature->CanGiveExperience())
|
||||
if (creature->IsCritter() || creature->IsTotem())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user