Core/Creatures: Allow disabling loot for creatures
Port From (https://github.com/TrinityCore/TrinityCore/commit/ebf799c0f696ec88be66795d4ad0a20fa5ce5e92)
This commit is contained in:
@@ -703,6 +703,9 @@ namespace Game.Entities
|
||||
if (tapper != null)
|
||||
tappers.Add(tapper);
|
||||
}
|
||||
|
||||
if (!creature.CanHaveLoot())
|
||||
isRewardAllowed = false;
|
||||
}
|
||||
|
||||
// Exploit fix
|
||||
@@ -900,7 +903,7 @@ namespace Game.Entities
|
||||
else
|
||||
creature.AllLootRemovedFromCorpse();
|
||||
|
||||
if (LootStorage.Skinning.HaveLootFor(creature.GetCreatureTemplate().SkinLootId))
|
||||
if (creature.CanHaveLoot() && LootStorage.Skinning.HaveLootFor(creature.GetCreatureTemplate().SkinLootId))
|
||||
{
|
||||
creature.SetDynamicFlag(UnitDynFlags.CanSkin);
|
||||
creature.SetUnitFlag(UnitFlags.Skinnable);
|
||||
|
||||
Reference in New Issue
Block a user