Core/Loot: Implemented personal loot and tag sharing for non-boss loot
Port From (https://github.com/TrinityCore/TrinityCore/commit/133334a902b705dae6f7e92bb1009b84cf1c51d2)
This commit is contained in:
@@ -355,11 +355,14 @@ namespace Game
|
||||
|
||||
if (loot.IsLooted())
|
||||
{
|
||||
creature.RemoveDynamicFlag(UnitDynFlags.Lootable);
|
||||
if (creature.IsFullyLooted())
|
||||
{
|
||||
creature.RemoveDynamicFlag(UnitDynFlags.Lootable);
|
||||
|
||||
// skip pickpocketing loot for speed, skinning timer reduction is no-op in fact
|
||||
if (!creature.IsAlive())
|
||||
creature.AllLootRemovedFromCorpse();
|
||||
// skip pickpocketing loot for speed, skinning timer reduction is no-op in fact
|
||||
if (!creature.IsAlive())
|
||||
creature.AllLootRemovedFromCorpse();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -369,11 +372,11 @@ namespace Game
|
||||
loot.roundRobinPlayer.Clear();
|
||||
loot.NotifyLootList(creature.GetMap());
|
||||
}
|
||||
|
||||
// force dynflag update to update looter and lootable info
|
||||
creature.m_values.ModifyValue(creature.m_objectData).ModifyValue(creature.m_objectData.DynamicFlags);
|
||||
creature.ForceUpdateFieldChange();
|
||||
}
|
||||
|
||||
// force dynflag update to update looter and lootable info
|
||||
creature.m_values.ModifyValue(creature.m_objectData).ModifyValue(creature.m_objectData.DynamicFlags);
|
||||
creature.ForceUpdateFieldChange();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user