Fixed code relating to initial held items in battle, fixed default functionality of rand when no number is given

This commit is contained in:
Maruno17
2021-08-03 18:45:39 +01:00
parent c8b1b6251b
commit 7f86115c36
5 changed files with 19 additions and 14 deletions

View File

@@ -132,8 +132,9 @@ class << Kernel
return oldRand(a)
end
elsif a.nil?
return (b) ? oldRand(b) : oldRand(2)
return oldRand(b)
end
return oldRand
end
end