Core/Units: Fixed exploit where killing tamed pet could yield emblems
This commit is contained in:
@@ -1353,6 +1353,10 @@ namespace Game.Entities
|
|||||||
if (isRewardAllowed && creature != null && creature.GetLootRecipient() != null)
|
if (isRewardAllowed && creature != null && creature.GetLootRecipient() != null)
|
||||||
player = creature.GetLootRecipient();
|
player = creature.GetLootRecipient();
|
||||||
|
|
||||||
|
// Exploit fix
|
||||||
|
if (creature && creature.IsPet() && creature.GetOwnerGUID().IsPlayer())
|
||||||
|
isRewardAllowed = false;
|
||||||
|
|
||||||
// Reward player, his pets, and group/raid members
|
// 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)
|
// 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)
|
if (isRewardAllowed && player != null && player != victim)
|
||||||
|
|||||||
Reference in New Issue
Block a user