Added class GameData::Stat

This commit is contained in:
Maruno17
2021-03-04 22:59:48 +00:00
parent 934e38662a
commit ff0c2f00c8
46 changed files with 1301 additions and 1202 deletions

View File

@@ -390,7 +390,7 @@ class StandardRestriction
return false if speciesBlacklist.include?(pkmn.species)
# Species with total base stat 600 or more are banned
bst = 0
pkmn.baseStats.each { |s| bst += s }
pkmn.baseStats.each_value { |s| bst += s }
return false if bst >= 600
# Is valid
return true