Fixed various bugs found when generating Battle Frontier challenge lists

This commit is contained in:
Maruno17
2021-12-29 14:37:41 +00:00
parent a7e8005f53
commit fb29f19a28
8 changed files with 34 additions and 24 deletions

View File

@@ -32,7 +32,7 @@ class Battle::Move::Confusion < Battle::Move
@category = 0
@accuracy = 100
@pp = -1
@target = 0
@target = :User
@priority = 0
@flags = []
@addlEffect = 0
@@ -61,7 +61,7 @@ class Battle::Move::Struggle < Battle::Move
@category = 0
@accuracy = 0
@pp = -1
@target = 0
@target = :NearOther
@priority = 0
@flags = ["Contact", "CanProtect"]
@addlEffect = 0

View File

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