hidden power error fix

This commit is contained in:
infinitefusion
2022-05-15 09:25:04 -04:00
parent 66e7d03fbd
commit bbf4bc6e9b
14 changed files with 9 additions and 4 deletions

View File

@@ -243,13 +243,13 @@ end
#===============================================================================
class PokeBattle_Move_090 < PokeBattle_Move
def pbBaseType(user)
hp = pbHiddenPower(user,user.hiddenPowerType)
hp = pbHiddenPower(user,user.pokemon.hiddenPowerType)
return hp[0]
end
def pbBaseDamage(baseDmg,user,target)
return super if Settings::MECHANICS_GENERATION >= 6
hp = pbHiddenPower(user,user.hiddenPowerType)
hp = pbHiddenPower(user,user.pokemon.hiddenPowerType)
return hp[1]
end
end