Skip to content

Commit

Permalink
Rpg - fix weird spell gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Aug 14, 2022
1 parent 2f413c3 commit e3875be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/rpg/spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,8 @@ function Public.get_all_spells_filtered(rpg_t)
local spell_names = {}

for i = 1, #spells do
if spells[i].enabled and rpg_t and rpg_t.level >= spells[i].level then
-- if spells[i].enabled and rpg_t and rpg_t.level >= spells[i].level then -- this needs fixing.
if spells[i].enabled then
new_spells[#new_spells + 1] = spells[i]
spell_names[#spell_names + 1] = spells[i].name
end
Expand Down

0 comments on commit e3875be

Please sign in to comment.