Skip to content

Commit

Permalink
Make all races friendly to wizards
Browse files Browse the repository at this point in the history
  • Loading branch information
neinwhal committed Jan 11, 2022
1 parent ec84ae4 commit 13a3f18
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions mods/lottclasses/allies.lua
Expand Up @@ -59,13 +59,17 @@ lottclasses.player_same_race_or_ally = function(player, race)
local player_privs = minetest.get_player_privs(player:get_player_name())
local player_race = nil
for i, v in pairs(lottclasses.races) do
player_race = nil
if player_privs[v] then
player_race = v
end
if player_race == race or lottclasses.allies[race][player_race] then
return true
end
player_race = nil
if player_privs.GAMEwizard then
return true
end

if player_privs[v] then
player_race = v
end
if player_race == race or lottclasses.allies[race][player_race] then
return true
end
end
return false
end
Expand Down

0 comments on commit 13a3f18

Please sign in to comment.