mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
multitype ABILITY
This commit is contained in:
@@ -312,11 +312,17 @@ class Pokemon
|
||||
|
||||
# @return [Symbol] this Pokémon's first type
|
||||
def type1
|
||||
if @ability == :MULTITYPE && species_data.type1 == :NORMAL
|
||||
return getHeldPlateType()
|
||||
end
|
||||
return species_data.type1
|
||||
end
|
||||
|
||||
# @return [Symbol] this Pokémon's second type, or the first type if none is defined
|
||||
def type2
|
||||
if @ability == :MULTITYPE && species_data.type2 == :NORMAL
|
||||
return getHeldPlateType()
|
||||
end
|
||||
sp_data = species_data
|
||||
return sp_data.type2 || sp_data.type1
|
||||
end
|
||||
@@ -336,6 +342,10 @@ class Pokemon
|
||||
return self.types.include?(type)
|
||||
end
|
||||
|
||||
def getHeldPlateType()
|
||||
return getArceusPlateType(@item)
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Gender
|
||||
#=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user