mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Removed deprecated methods
This commit is contained in:
@@ -323,18 +323,6 @@ class Pokemon
|
||||
return species_data.types.clone
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def type1
|
||||
Deprecation.warn_method("type1", "v22", "pkmn.types")
|
||||
return types[0]
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def type2
|
||||
Deprecation.warn_method("type2", "v22", "pkmn.types")
|
||||
return types[1] || types[0]
|
||||
end
|
||||
|
||||
# @param type [Symbol, String, GameData::Type] type to check
|
||||
# @return [Boolean] whether this Pokémon has the specified type
|
||||
def hasType?(type)
|
||||
|
||||
Reference in New Issue
Block a user