фикс магазина
This commit is contained in:
@@ -162,6 +162,12 @@ function CreatureDisplays.Load()
|
|||||||
end
|
end
|
||||||
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
|
local Query = nil
|
||||||
if(GetCoreName() == "TrinityCore") then
|
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..");")
|
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