Fix random-interval crash when not using luajit

This commit is contained in:
cora 2022-11-10 01:45:42 +01:00
parent 470d7dbe39
commit c44b29925a
1 changed files with 1 additions and 1 deletions

View File

@ -2212,7 +2212,7 @@ local monster_attack = function(self)
end
end
end
if not min_player then
if not min_player and #blacklist_attack > 0 then
min_player=blacklist_attack[math.random(#blacklist_attack)]
end
-- attack player