фикс магазина

This commit is contained in:
2026-03-09 21:32:11 +04:00
parent da97c45702
commit 397aab3b31
@@ -162,6 +162,12 @@ function CreatureDisplays.Load()
end
end
-- If the store DB is unavailable or there are no creature-backed services,
-- avoid generating invalid SQL such as `IN ()`.
if (tmp == "") then
return
end
local Query = nil
if(GetCoreName() == "TrinityCore") then
Query = WorldDBQuery("SELECT entry, `name`, subname, IconName, type_flags, `type`, family, `rank`, KillCredit1, KillCredit2, HealthModifier, ManaModifier, RacialLeader, MovementType, modelId1, modelId2, modelId3, modelId4 FROM creature_template WHERE entry IN ("..tmp..");")