Core/Conditions: Remove unneccessary duplicate condition startup checks - item existance is checked by loot loading and if that fails, condition loading will fail to find related item inside loot
Port From (https://github.com/TrinityCore/TrinityCore/commit/6d3be9cca62ec3149af490b8f6dbbd4f3127d531)
This commit is contained in:
@@ -1064,15 +1064,6 @@ namespace Game.Loots
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool IsReference(uint id)
|
||||
{
|
||||
foreach (var storeItem in Entries)
|
||||
if (storeItem.itemid == id && storeItem.reference > 0)
|
||||
return true;
|
||||
|
||||
return false;//not found or not reference
|
||||
}
|
||||
|
||||
LootStoreItemList Entries = new(); // not grouped only
|
||||
Dictionary<int, LootGroup> Groups = new(); // groups have own (optimised) processing, grouped entries go there
|
||||
|
||||
|
||||
Reference in New Issue
Block a user