Skip to content

Commit

Permalink
Fix some single faction quests appear as both factions in the database
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Feb 16, 2020
1 parent 6ca45fe commit 5192d8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ function CodexDatabase:GetRaceMaskById(id, db)
local raceMask = 0

if db == "quests" then
raceMask = quests[id]["race"] or raceMask
if quests[id]["race"] ~= nil then
return quests[id]["race"]
end

if quests[id]["start"] then
local questStartRaceMask = 0
Expand Down

0 comments on commit 5192d8f

Please sign in to comment.