mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Generalised a species' types to allow any number of types
This commit is contained in:
@@ -312,7 +312,10 @@ module Compiler
|
||||
hash[:evolutions].each { |evo| evo[3] = false }
|
||||
end
|
||||
# Remove duplicate types
|
||||
hash[:types].uniq! if hash[:types].is_a?(Array)
|
||||
if hash[:types].is_a?(Array)
|
||||
hash[:types].uniq!
|
||||
hash[:types].compact!
|
||||
end
|
||||
end
|
||||
|
||||
def validate_all_compiled_pokemon
|
||||
|
||||
Reference in New Issue
Block a user