mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 07:35:00 +00:00
Added class GameData::Stat
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user