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
This commit is contained in:
1 parent
cb6611b048
commit
2ef041bf36
1 file changed
+1
-1
@@ -24631,7 +24631,7 @@ bool Player::isHonorOrXPTarget(Unit const* victim) const
|
||||
|
||||
if (Creature const* creature = victim->ToCreature())
|
||||
{
|
||||
if (!creature->CanGiveExperience())
|
||||
if (creature->IsCritter() || creature->IsTotem())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user