mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-03-10 02:12:01 +00:00
Rearranged settings
This commit is contained in:
@@ -132,7 +132,7 @@ class PokeBattle_Move
|
||||
def nonLethal?(_user,_target); return false; end # For False Swipe
|
||||
|
||||
def ignoresSubstitute?(user) # user is the Pokémon using this move
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
return true if soundMove?
|
||||
return true if user && user.hasActiveAbility?(:INFILTRATOR)
|
||||
end
|
||||
|
||||
@@ -160,7 +160,7 @@ class PokeBattle_Move
|
||||
def pbIsCritical?(user,target)
|
||||
return false if target.pbOwnSide.effects[PBEffects::LuckyChant]>0
|
||||
# Set up the critical hit ratios
|
||||
ratios = (NEWEST_BATTLE_MECHANICS) ? [24,8,2,1] : [16,8,4,3,2]
|
||||
ratios = (NEW_CRITICAL_HIT_RATE_MECHANICS) ? [24,8,2,1] : [16,8,4,3,2]
|
||||
c = 0
|
||||
# Ability effects that alter critical hit rate
|
||||
if c>=0 && user.abilityActive?
|
||||
@@ -390,7 +390,7 @@ class PokeBattle_Move
|
||||
end
|
||||
# Critical hits
|
||||
if target.damageState.critical
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if NEW_CRITICAL_HIT_RATE_MECHANICS
|
||||
multipliers[FINAL_DMG_MULT] *= 1.5
|
||||
else
|
||||
multipliers[FINAL_DMG_MULT] *= 2
|
||||
@@ -455,7 +455,7 @@ class PokeBattle_Move
|
||||
def pbAdditionalEffectChance(user,target,effectChance=0)
|
||||
return 0 if target.hasActiveAbility?(:SHIELDDUST) && !@battle.moldBreaker
|
||||
ret = (effectChance>0) ? effectChance : @addlEffect
|
||||
if NEWEST_BATTLE_MECHANICS || @function!="0A4" # Secret Power
|
||||
if MECHANICS_GENERATION >= 6 || @function != "0A4" # Secret Power
|
||||
ret *= 2 if user.hasActiveAbility?(:SERENEGRACE) ||
|
||||
user.pbOwnSide.effects[PBEffects::Rainbow]>0
|
||||
end
|
||||
|
||||
@@ -555,7 +555,7 @@ class PokeBattle_ProtectMove < PokeBattle_Move
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
if !(@sidedEffect && NEWEST_BATTLE_MECHANICS) &&
|
||||
if (!@sidedEffect || MECHANICS_GENERATION <= 5) &&
|
||||
user.effects[PBEffects::ProtectRate]>1 &&
|
||||
@battle.pbRandom(user.effects[PBEffects::ProtectRate])!=0
|
||||
user.effects[PBEffects::ProtectRate] = 1
|
||||
@@ -575,7 +575,7 @@ class PokeBattle_ProtectMove < PokeBattle_Move
|
||||
else
|
||||
user.effects[@effect] = true
|
||||
end
|
||||
user.effects[PBEffects::ProtectRate] *= (NEWEST_BATTLE_MECHANICS) ? 3 : 2
|
||||
user.effects[PBEffects::ProtectRate] *= (MECHANICS_GENERATION >= 6) ? 3 : 2
|
||||
pbProtectMessage(user)
|
||||
end
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_003 < PokeBattle_SleepMove
|
||||
def pbMoveFailed?(user,targets)
|
||||
if NEWEST_BATTLE_MECHANICS && @id == :DARKVOID
|
||||
if MECHANICS_GENERATION >= 7 && @id == :DARKVOID
|
||||
if !user.isSpecies?(:DARKRAI) && user.effects[PBEffects::TransformSpecies] != :DARKRAI
|
||||
@battle.pbDisplay(_INTL("But {1} can't use the move!",user.pbThis))
|
||||
return true
|
||||
@@ -93,7 +93,7 @@ class PokeBattle_Move_006 < PokeBattle_PoisonMove
|
||||
end
|
||||
|
||||
def pbOverrideSuccessCheckPerHit(user,target)
|
||||
return (NEWEST_BATTLE_MECHANICS && statusMove? && user.pbHasType?(:POISON))
|
||||
return (MORE_TYPE_EFFECTS && statusMove? && user.pbHasType?(:POISON))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -107,7 +107,7 @@ end
|
||||
class PokeBattle_Move_007 < PokeBattle_ParalysisMove
|
||||
def tramplesMinimize?(param=1)
|
||||
# Perfect accuracy and double damage (for Body Slam only)
|
||||
return NEWEST_BATTLE_MECHANICS if @id == :BODYSLAM
|
||||
return MECHANICS_GENERATION >= 6 if @id == :BODYSLAM
|
||||
return super
|
||||
end
|
||||
|
||||
@@ -241,8 +241,8 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_010 < PokeBattle_FlinchMove
|
||||
def tramplesMinimize?(param=1)
|
||||
return super if @id == :DRAGONRUSH && !NEWEST_BATTLE_MECHANICS
|
||||
return true if param==1 && NEWEST_BATTLE_MECHANICS # Perfect accuracy
|
||||
return super if @id == :DRAGONRUSH && MECHANICS_GENERATION <= 5
|
||||
return true if param==1 && MECHANICS_GENERATION >= 6 # Perfect accuracy
|
||||
return true if param==2 # Double damage
|
||||
return super
|
||||
end
|
||||
@@ -305,7 +305,7 @@ class PokeBattle_Move_014 < PokeBattle_ConfuseMove
|
||||
end
|
||||
|
||||
def addlEffect
|
||||
return @chatterChance if !NEWEST_BATTLE_MECHANICS
|
||||
return @chatterChance if MECHANICS_GENERATION <= 5
|
||||
return super
|
||||
end
|
||||
end
|
||||
@@ -1267,7 +1267,7 @@ end
|
||||
class PokeBattle_Move_048 < PokeBattle_TargetStatDownMove
|
||||
def initialize(battle,move)
|
||||
super
|
||||
@statDown = [PBStats::EVASION,(NEWEST_BATTLE_MECHANICS) ? 2 : 1]
|
||||
@statDown = [PBStats::EVASION,(MECHANICS_GENERATION >= 6) ? 2 : 1]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1297,11 +1297,13 @@ class PokeBattle_Move_049 < PokeBattle_TargetStatDownMove
|
||||
targetSide.effects[PBEffects::Spikes]>0 ||
|
||||
targetSide.effects[PBEffects::ToxicSpikes]>0 ||
|
||||
targetSide.effects[PBEffects::StickyWeb]
|
||||
return false if NEWEST_BATTLE_MECHANICS &&
|
||||
return false if MECHANICS_GENERATION >= 6 &&
|
||||
(targetOpposingSide.effects[PBEffects::StealthRock] ||
|
||||
targetOpposingSide.effects[PBEffects::Spikes]>0 ||
|
||||
targetOpposingSide.effects[PBEffects::ToxicSpikes]>0 ||
|
||||
targetOpposingSide.effects[PBEffects::StickyWeb])
|
||||
return false if MECHANICS_GENERATION >= 8 &&
|
||||
@battle.field.terrain != PBBattleTerrains::None
|
||||
return super
|
||||
end
|
||||
|
||||
@@ -1330,33 +1332,46 @@ class PokeBattle_Move_049 < PokeBattle_TargetStatDownMove
|
||||
@battle.pbDisplay(_INTL("{1} is no longer protected by Safeguard!!",target.pbTeam))
|
||||
end
|
||||
if target.pbOwnSide.effects[PBEffects::StealthRock] ||
|
||||
(NEWEST_BATTLE_MECHANICS &&
|
||||
(MECHANICS_GENERATION >= 6 &&
|
||||
target.pbOpposingSide.effects[PBEffects::StealthRock])
|
||||
target.pbOwnSide.effects[PBEffects::StealthRock] = false
|
||||
target.pbOpposingSide.effects[PBEffects::StealthRock] = false if NEWEST_BATTLE_MECHANICS
|
||||
target.pbOpposingSide.effects[PBEffects::StealthRock] = false if MECHANICS_GENERATION >= 6
|
||||
@battle.pbDisplay(_INTL("{1} blew away stealth rocks!",user.pbThis))
|
||||
end
|
||||
if target.pbOwnSide.effects[PBEffects::Spikes]>0 ||
|
||||
(NEWEST_BATTLE_MECHANICS &&
|
||||
(MECHANICS_GENERATION >= 6 &&
|
||||
target.pbOpposingSide.effects[PBEffects::Spikes]>0)
|
||||
target.pbOwnSide.effects[PBEffects::Spikes] = 0
|
||||
target.pbOpposingSide.effects[PBEffects::Spikes] = 0 if NEWEST_BATTLE_MECHANICS
|
||||
target.pbOpposingSide.effects[PBEffects::Spikes] = 0 if MECHANICS_GENERATION >= 6
|
||||
@battle.pbDisplay(_INTL("{1} blew away spikes!",user.pbThis))
|
||||
end
|
||||
if target.pbOwnSide.effects[PBEffects::ToxicSpikes]>0 ||
|
||||
(NEWEST_BATTLE_MECHANICS &&
|
||||
(MECHANICS_GENERATION >= 6 &&
|
||||
target.pbOpposingSide.effects[PBEffects::ToxicSpikes]>0)
|
||||
target.pbOwnSide.effects[PBEffects::ToxicSpikes] = 0
|
||||
target.pbOpposingSide.effects[PBEffects::ToxicSpikes] = 0 if NEWEST_BATTLE_MECHANICS
|
||||
target.pbOpposingSide.effects[PBEffects::ToxicSpikes] = 0 if MECHANICS_GENERATION >= 6
|
||||
@battle.pbDisplay(_INTL("{1} blew away poison spikes!",user.pbThis))
|
||||
end
|
||||
if target.pbOwnSide.effects[PBEffects::StickyWeb] ||
|
||||
(NEWEST_BATTLE_MECHANICS &&
|
||||
(MECHANICS_GENERATION >= 6 &&
|
||||
target.pbOpposingSide.effects[PBEffects::StickyWeb])
|
||||
target.pbOwnSide.effects[PBEffects::StickyWeb] = false
|
||||
target.pbOpposingSide.effects[PBEffects::StickyWeb] = false if NEWEST_BATTLE_MECHANICS
|
||||
target.pbOpposingSide.effects[PBEffects::StickyWeb] = false if MECHANICS_GENERATION >= 6
|
||||
@battle.pbDisplay(_INTL("{1} blew away sticky webs!",user.pbThis))
|
||||
end
|
||||
if MECHANICS_GENERATION >= 8 && @battle.field.terrain != PBBattleTerrains::None
|
||||
case @battle.field.terrain
|
||||
when PBBattleTerrains::Electric
|
||||
@battle.pbDisplay(_INTL("The electricity disappeared from the battlefield."))
|
||||
when PBBattleTerrains::Grassy
|
||||
@battle.pbDisplay(_INTL("The grass disappeared from the battlefield."))
|
||||
when PBBattleTerrains::Misty
|
||||
@battle.pbDisplay(_INTL("The mist disappeared from the battlefield."))
|
||||
when PBBattleTerrains::Psychic
|
||||
@battle.pbDisplay(_INTL("The weirdness disappeared from the battlefield."))
|
||||
end
|
||||
@battle.field.terrain = PBBattleTerrains::None
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1405,7 +1420,7 @@ class PokeBattle_Move_04D < PokeBattle_TargetStatDownMove
|
||||
def initialize(battle,move)
|
||||
super
|
||||
inc = 2
|
||||
inc = 1 if @id == :STRINGSHOT && !NEWEST_BATTLE_MECHANICS
|
||||
inc = 1 if @id == :STRINGSHOT && MECHANICS_GENERATION <= 5
|
||||
@statDown = [PBStats::SPEED,inc]
|
||||
end
|
||||
end
|
||||
@@ -1559,7 +1574,7 @@ class PokeBattle_Move_055 < PokeBattle_Move
|
||||
|
||||
def pbEffectAgainstTarget(user,target)
|
||||
PBStats.eachBattleStat { |s| user.stages[s] = target.stages[s] }
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if NEW_CRITICAL_HIT_RATE_MECHANICS
|
||||
user.effects[PBEffects::FocusEnergy] = target.effects[PBEffects::FocusEnergy]
|
||||
user.effects[PBEffects::LaserFocus] = target.effects[PBEffects::LaserFocus]
|
||||
end
|
||||
@@ -1794,7 +1809,7 @@ class PokeBattle_Move_05E < PokeBattle_Move
|
||||
userTypes = user.pbTypes(true)
|
||||
@newTypes = []
|
||||
user.eachMoveWithIndex do |m,i|
|
||||
break if NEWEST_BATTLE_MECHANICS && i>0
|
||||
break if MECHANICS_GENERATION >= 6 && i>0
|
||||
next if PBTypes.isPseudoType?(m.type)
|
||||
next if userTypes.include?(m.type)
|
||||
@newTypes.push(m.type) if !@newTypes.include?(m.type)
|
||||
@@ -2167,7 +2182,7 @@ class PokeBattle_Move_067 < PokeBattle_Move
|
||||
|
||||
def pbFailsAgainstTarget?(user,target)
|
||||
if !target.ability ||
|
||||
(user.ability==target.ability && !NEWEST_BATTLE_MECHANICS)
|
||||
(user.ability == target.ability && MECHANICS_GENERATION <= 5)
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
@@ -2369,7 +2384,7 @@ class PokeBattle_Move_070 < PokeBattle_FixedDamageMove
|
||||
@battle.pbHideAbilitySplash(target)
|
||||
return true
|
||||
end
|
||||
if NEWEST_BATTLE_MECHANICS && @id == :SHEERCOLD && target.pbHasType?(:ICE)
|
||||
if MECHANICS_GENERATION >= 7 && @id == :SHEERCOLD && target.pbHasType?(:ICE)
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
@@ -2378,7 +2393,7 @@ class PokeBattle_Move_070 < PokeBattle_FixedDamageMove
|
||||
|
||||
def pbAccuracyCheck(user,target)
|
||||
acc = @accuracy+user.level-target.level
|
||||
acc -= 10 if NEWEST_BATTLE_MECHANICS && @id == :SHEERCOLD && !user.pbHasType?(:ICE)
|
||||
acc -= 10 if MECHANICS_GENERATION >= 7 && @id == :SHEERCOLD && !user.pbHasType?(:ICE)
|
||||
return @battle.pbRandom(100)<acc
|
||||
end
|
||||
|
||||
@@ -2697,7 +2712,7 @@ end
|
||||
# Burn's halving of Attack is negated (new mechanics).
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_07E < PokeBattle_Move
|
||||
def damageReducedByBurn?; return !NEWEST_BATTLE_MECHANICS; end
|
||||
def damageReducedByBurn?; return MECHANICS_GENERATION <= 5; end
|
||||
|
||||
def pbBaseDamage(baseDmg,user,target)
|
||||
baseDmg *= 2 if user.poisoned? || user.burned? || user.paralyzed?
|
||||
|
||||
@@ -248,7 +248,7 @@ class PokeBattle_Move_090 < PokeBattle_Move
|
||||
end
|
||||
|
||||
def pbBaseDamage(baseDmg,user,target)
|
||||
return super if NEWEST_BATTLE_MECHANICS
|
||||
return super if MECHANICS_GENERATION >= 6
|
||||
hp = pbHiddenPower(user)
|
||||
return hp[1]
|
||||
end
|
||||
@@ -272,7 +272,7 @@ def pbHiddenPower(pkmn)
|
||||
idxType |= (iv[PBStats::SPDEF]&1)<<5
|
||||
idxType = (types.length-1)*idxType/63
|
||||
type = types[idxType]
|
||||
if !NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION <= 5
|
||||
powerMin = 30
|
||||
powerMax = 70
|
||||
power |= (iv[PBStats::HP]&2)>>1
|
||||
@@ -503,7 +503,7 @@ class PokeBattle_Move_096 < PokeBattle_Move
|
||||
@damageArray.each do |dmg, items|
|
||||
next if !items.include?(heldItem)
|
||||
ret = dmg
|
||||
ret += 20 if NEWEST_BATTLE_MECHANICS
|
||||
ret += 20 if MECHANICS_GENERATION >= 6
|
||||
break
|
||||
end
|
||||
return ret
|
||||
@@ -600,7 +600,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_09B < PokeBattle_Move
|
||||
def tramplesMinimize?(param=1)
|
||||
return true if NEWEST_BATTLE_MECHANICS # Perfect accuracy and double damage
|
||||
return true if MECHANICS_GENERATION >= 7 # Perfect accuracy and double damage
|
||||
return super
|
||||
end
|
||||
|
||||
@@ -646,7 +646,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_09D < PokeBattle_Move
|
||||
def pbMoveFailed?(user,targets)
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
if @battle.field.effects[PBEffects::MudSportField]>0
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
@@ -662,7 +662,7 @@ class PokeBattle_Move_09D < PokeBattle_Move
|
||||
end
|
||||
|
||||
def pbEffectGeneral(user)
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@battle.field.effects[PBEffects::MudSportField] = 5
|
||||
else
|
||||
user.effects[PBEffects::MudSport] = true
|
||||
@@ -678,7 +678,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_09E < PokeBattle_Move
|
||||
def pbMoveFailed?(user,targets)
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
if @battle.field.effects[PBEffects::WaterSportField]>0
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
@@ -694,7 +694,7 @@ class PokeBattle_Move_09E < PokeBattle_Move
|
||||
end
|
||||
|
||||
def pbEffectGeneral(user)
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@battle.field.effects[PBEffects::WaterSportField] = 5
|
||||
else
|
||||
user.effects[PBEffects::WaterSport] = true
|
||||
@@ -1193,7 +1193,7 @@ class PokeBattle_Move_0AF < PokeBattle_Move
|
||||
"133", # Hold Hands
|
||||
"134" # Celebrate
|
||||
]
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@moveBlacklist += [
|
||||
# Target-switching moves
|
||||
"0EB", # Roar, Whirlwind
|
||||
@@ -1320,7 +1320,7 @@ class PokeBattle_Move_0B3 < PokeBattle_Move
|
||||
case @battle.environment
|
||||
when PBEnvironment::Grass, PBEnvironment::TallGrass,
|
||||
PBEnvironment::Forest, PBEnvironment::ForestGrass
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@npMove = :ENERGYBALL if GameData::Move.exists?(:ENERGYBALL)
|
||||
else
|
||||
@npMove = :SEEDBOMB if GameData::Move.exists?(:SEEDBOMB)
|
||||
@@ -1330,30 +1330,31 @@ class PokeBattle_Move_0B3 < PokeBattle_Move
|
||||
when PBEnvironment::Puddle
|
||||
@npMove = :MUDBOMB if GameData::Move.exists?(:MUDBOMB)
|
||||
when PBEnvironment::Cave
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@npMove = :POWERGEM if GameData::Move.exists?(:POWERGEM)
|
||||
else
|
||||
@npMove = :ROCKSLIDE if GameData::Move.exists?(:ROCKSLIDE)
|
||||
end
|
||||
when PBEnvironment::Rock
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@npMove = :EARTHPOWER if GameData::Move.exists?(:EARTHPOWER)
|
||||
else
|
||||
@npMove = :ROCKSLIDE if GameData::Move.exists?(:ROCKSLIDE)
|
||||
end
|
||||
when PBEnvironment::Sand
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@npMove = :EARTHPOWER if GameData::Move.exists?(:EARTHPOWER)
|
||||
else
|
||||
@npMove = :EARTHQUAKE if GameData::Move.exists?(:EARTHQUAKE)
|
||||
end
|
||||
# Ice tiles in Gen 6 should be Ice Beam
|
||||
when PBEnvironment::Snow, PBEnvironment::Ice
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
when PBEnvironment::Snow
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@npMove = :FROSTBREATH if GameData::Move.exists?(:FROSTBREATH)
|
||||
else
|
||||
@npMove = :ICEBEAM if GameData::Move.exists?(:ICEBEAM)
|
||||
@npMove = :BLIZZARD if GameData::Move.exists?(:BLIZZARD)
|
||||
end
|
||||
when PBEnvironment::Ice
|
||||
@npMove = :ICEBEAM if GameData::Move.exists?(:ICEBEAM)
|
||||
when PBEnvironment::Volcano
|
||||
@npMove = :LAVAPLUME if GameData::Move.exists?(:LAVAPLUME)
|
||||
when PBEnvironment::Graveyard
|
||||
@@ -1513,7 +1514,7 @@ class PokeBattle_Move_0B5 < PokeBattle_Move
|
||||
"133", # Hold Hands
|
||||
"134" # Celebrate
|
||||
]
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 6
|
||||
@moveBlacklist += [
|
||||
# Moves that call other moves
|
||||
"0B3", # Nature Power
|
||||
@@ -1544,7 +1545,7 @@ class PokeBattle_Move_0B5 < PokeBattle_Move
|
||||
# NOTE: This includes the Pokémon of ally trainers in multi battles.
|
||||
@battle.pbParty(user.index).each_with_index do |pkmn,i|
|
||||
next if !pkmn || i==user.pokemonIndex
|
||||
next if NEWEST_BATTLE_MECHANICS && pkmn.egg?
|
||||
next if MECHANICS_GENERATION >= 6 && pkmn.egg?
|
||||
pkmn.moves.each do |move|
|
||||
next if @moveBlacklist.include?(move.function_code)
|
||||
next if move.type == :SHADOW
|
||||
@@ -1777,7 +1778,7 @@ class PokeBattle_Move_0BA < PokeBattle_Move
|
||||
return true
|
||||
end
|
||||
return true if pbMoveFailedAromaVeil?(user,target)
|
||||
if NEWEST_BATTLE_MECHANICS && target.hasActiveAbility?(:OBLIVIOUS) &&
|
||||
if MECHANICS_GENERATION >= 6 && target.hasActiveAbility?(:OBLIVIOUS) &&
|
||||
!@battle.moldBreaker
|
||||
@battle.pbShowAbilitySplash(target)
|
||||
if PokeBattle_SceneConstants::USE_ABILITY_SPLASH
|
||||
@@ -1842,7 +1843,7 @@ class PokeBattle_Move_0BC < PokeBattle_Move
|
||||
# Moves that call other moves (see also below)
|
||||
"0AE" # Mirror Move
|
||||
]
|
||||
if NEWEST_BATTLE_MECHANICS
|
||||
if MECHANICS_GENERATION >= 7
|
||||
@moveBlacklist += [
|
||||
# Moves that call other moves
|
||||
# "0AE", # Mirror Move # See above
|
||||
@@ -2235,7 +2236,7 @@ class PokeBattle_Move_0CE < PokeBattle_TwoTurnMove
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
if NEWEST_BATTLE_MECHANICS && target.pbWeight>=2000 # 200.0kg
|
||||
if MECHANICS_GENERATION >= 6 && target.pbWeight>=2000 # 200.0kg
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
@@ -2285,7 +2286,7 @@ class PokeBattle_Move_0CF < PokeBattle_Move
|
||||
return if target.effects[PBEffects::Trapping]>0
|
||||
# Set trapping effect duration and info
|
||||
if user.hasActiveItem?(:GRIPCLAW)
|
||||
target.effects[PBEffects::Trapping] = (NEWEST_BATTLE_MECHANICS) ? 8 : 6
|
||||
target.effects[PBEffects::Trapping] = (MECHANICS_GENERATION >= 5) ? 8 : 6
|
||||
else
|
||||
target.effects[PBEffects::Trapping] = 5+@battle.pbRandom(2)
|
||||
end
|
||||
@@ -2648,7 +2649,7 @@ end
|
||||
# User gains half the HP it inflicts as damage.
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_0DD < PokeBattle_Move
|
||||
def healingMove?; return NEWEST_BATTLE_MECHANICS; end
|
||||
def healingMove?; return MECHANICS_GENERATION >= 6; end
|
||||
|
||||
def pbEffectAgainstTarget(user,target)
|
||||
return if target.damageState.hpLost<=0
|
||||
@@ -2664,7 +2665,7 @@ end
|
||||
# (Dream Eater)
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_0DE < PokeBattle_Move
|
||||
def healingMove?; return NEWEST_BATTLE_MECHANICS; end
|
||||
def healingMove?; return MECHANICS_GENERATION >= 6; end
|
||||
|
||||
def pbFailsAgainstTarget?(user,target)
|
||||
if !target.asleep?
|
||||
@@ -2899,7 +2900,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_0E7 < PokeBattle_Move
|
||||
def pbMoveFailed?(user,targets)
|
||||
if NEWEST_BATTLE_MECHANICS && user.effects[PBEffects::DestinyBondPrevious]
|
||||
if MECHANICS_GENERATION >= 7 && user.effects[PBEffects::DestinyBondPrevious]
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
@@ -3144,7 +3145,7 @@ class PokeBattle_Move_0EF < PokeBattle_Move
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
if NEWEST_BATTLE_MECHANICS && target.pbHasType?(:GHOST)
|
||||
if MORE_TYPE_EFFECTS && target.pbHasType?(:GHOST)
|
||||
@battle.pbDisplay(_INTL("It doesn't affect {1}...",target.pbThis(true)))
|
||||
return true
|
||||
end
|
||||
@@ -3160,7 +3161,7 @@ class PokeBattle_Move_0EF < PokeBattle_Move
|
||||
def pbAdditionalEffect(user,target)
|
||||
return if target.fainted? || target.damageState.substitute
|
||||
return if target.effects[PBEffects::MeanLook]>=0
|
||||
return if NEWEST_BATTLE_MECHANICS && target.pbHasType?(:GHOST)
|
||||
return if MORE_TYPE_EFFECTS && target.pbHasType?(:GHOST)
|
||||
target.effects[PBEffects::MeanLook] = user.index
|
||||
@battle.pbDisplay(_INTL("{1} can no longer escape!",target.pbThis))
|
||||
end
|
||||
@@ -3174,7 +3175,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_0F0 < PokeBattle_Move
|
||||
def pbBaseDamage(baseDmg,user,target)
|
||||
if NEWEST_BATTLE_MECHANICS &&
|
||||
if MECHANICS_GENERATION >= 6 &&
|
||||
target.item && !target.unlosableItem?(target.item)
|
||||
# NOTE: Damage is still boosted even if target has Sticky Hold or a
|
||||
# substitute.
|
||||
@@ -3300,7 +3301,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_0F3 < PokeBattle_Move
|
||||
def ignoresSubstitute?(user)
|
||||
return true if NEWEST_BATTLE_MECHANICS
|
||||
return true if MECHANICS_GENERATION >= 6
|
||||
return super
|
||||
end
|
||||
|
||||
@@ -3364,7 +3365,7 @@ class PokeBattle_Move_0F5 < PokeBattle_Move
|
||||
def pbEffectWhenDealingDamage(user,target)
|
||||
return if target.damageState.substitute || target.damageState.berryWeakened
|
||||
return if !target.item || (!target.item.is_berry? &&
|
||||
!(NEWEST_BATTLE_MECHANICS && target.item.is_gem?))
|
||||
!(MECHANICS_GENERATION >= 6 && target.item.is_gem?))
|
||||
target.pbRemoveItem
|
||||
@battle.pbDisplay(_INTL("{1}'s {2} was incinerated!",target.pbThis,target.itemName))
|
||||
end
|
||||
|
||||
@@ -1445,7 +1445,7 @@ end
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_144 < PokeBattle_Move
|
||||
def tramplesMinimize?(param=1)
|
||||
return true if param==1 && NEWEST_BATTLE_MECHANICS # Perfect accuracy
|
||||
return true if param==1 && MECHANICS_GENERATION >= 6 # Perfect accuracy
|
||||
return true if param==2 # Double damage
|
||||
return super
|
||||
end
|
||||
@@ -1666,7 +1666,7 @@ end
|
||||
# User gains 3/4 the HP it inflicts as damage. (Draining Kiss, Oblivion Wing)
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_14F < PokeBattle_Move
|
||||
def healingMove?; return NEWEST_BATTLE_MECHANICS; end
|
||||
def healingMove?; return MECHANICS_GENERATION >= 6; end
|
||||
|
||||
def pbEffectAgainstTarget(user,target)
|
||||
return if target.damageState.hpLost<=0
|
||||
|
||||
Reference in New Issue
Block a user