Coded some Gen 9 ability/item/move effects

This commit is contained in:
Maruno17
2024-06-15 15:58:31 +01:00
parent 454d5a216a
commit 22b33ca6c2
35 changed files with 596 additions and 234 deletions

View File

@@ -176,6 +176,16 @@ class Battle::Move::ParalyzeTargetIfNotTypeImmune < Battle::Move::ParalyzeTarget
end
end
#===============================================================================
# Paralyzes the target. Accuracy perfect in rain. (Wildbolt Storm)
#===============================================================================
class Battle::Move::ParalyzeTargetAlwaysHitsInRain < Battle::Move::ParalyzeTarget
def pbBaseAccuracy(user, target)
return 0 if [:Rain, :HeavyRain].include?(target.effectiveWeather)
return super
end
end
#===============================================================================
# Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. Hits some
# semi-invulnerable targets. (Thunder)
@@ -233,6 +243,16 @@ class Battle::Move::BurnTarget < Battle::Move
end
end
#===============================================================================
# Burns the target. Accuracy perfect in rain. (Sandsear Storm)
#===============================================================================
class Battle::Move::BurnTargetAlwaysHitsInRain < Battle::Move::BurnTarget
def pbBaseAccuracy(user, target)
return 0 if [:Rain, :HeavyRain].include?(target.effectiveWeather)
return super
end
end
#===============================================================================
# Burns the target if any of its stats were increased this round.
# (Burning Jealousy)