фикс магазина
This commit is contained in:
@@ -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..");")
|
||||
|
||||
Reference in New Issue
Block a user