multitype ABILITY

This commit is contained in:
infinitefusion
2021-12-26 14:03:38 -05:00
parent 72d804163e
commit 12bbd2084b
3 changed files with 82 additions and 34 deletions

View File

@@ -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
#=============================================================================