mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 06:46:00 +00:00
Fixed various bugs found when generating Battle Frontier challenge lists
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user