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:
Hondacrx
2024-09-26 17:49:49 -04:00
parent 902f562f0a
commit db5e3383d7
2 changed files with 0 additions and 105 deletions
-9
View File
@@ -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