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.

Port From (https://github.com/TrinityCore/TrinityCore/commit/abc490f677607cbe488557ea859da970686c4c3d)
This commit is contained in:
hondacrx
2022-02-27 13:59:17 -05:00
parent aff47f6501
commit dea572cbed
+1 -1
View File
@@ -5198,7 +5198,7 @@ namespace Game.Entities
Creature creature = victim.ToCreature();
if (creature != null)
{
if (!creature.CanGiveExperience())
if (creature.IsCritter() || creature.IsTotem())
return false;
}
return true;