Core/Units: Fixed exploit where killing tamed pet could yield emblems

This commit is contained in:
hondacrx
2018-03-18 11:55:12 -04:00
parent 49306f7a6e
commit c50aa42612
+4
View File
@@ -1353,6 +1353,10 @@ namespace Game.Entities
if (isRewardAllowed && creature != null && creature.GetLootRecipient() != null)
player = creature.GetLootRecipient();
// Exploit fix
if (creature && creature.IsPet() && creature.GetOwnerGUID().IsPlayer())
isRewardAllowed = false;
// Reward player, his pets, and group/raid members
// call kill spell proc event (before real die and combat stop to triggering auras removed at death/combat stop)
if (isRewardAllowed && player != null && player != victim)