mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Merge branch 'master' of https://github.com/Maruno17/pokemon-essentials
This commit is contained in:
@@ -170,17 +170,17 @@ module PokeBattle_BattleCommon
|
||||
rareness = pbGetSpeciesData(pkmn.species,pkmn.form,SpeciesRareness)
|
||||
end
|
||||
# Modify rareness depending on the Poké Ball's effect
|
||||
ultraBeast = (isConst?(battler.species,PBSpecies,:NIHILEGO) ||
|
||||
isConst?(battler.species,PBSpecies,:BUZZWOLE) ||
|
||||
isConst?(battler.species,PBSpecies,:PHEROMOSA) ||
|
||||
isConst?(battler.species,PBSpecies,:XURKITREE) ||
|
||||
isConst?(battler.species,PBSpecies,:CELESTEELA) ||
|
||||
isConst?(battler.species,PBSpecies,:KARTANA) ||
|
||||
isConst?(battler.species,PBSpecies,:GUZZLORD) ||
|
||||
isConst?(battler.species,PBSpecies,:POIPOLE) ||
|
||||
isConst?(battler.species,PBSpecies,:NAGANADEL) ||
|
||||
isConst?(battler.species,PBSpecies,:STAKATAKA) ||
|
||||
isConst?(battler.species,PBSpecies,:BLACEPHALON))
|
||||
ultraBeast = (battler.isSpecies?(:NIHILEGO) ||
|
||||
battler.isSpecies?(:BUZZWOLE) ||
|
||||
battler.isSpecies?(:PHEROMOSA) ||
|
||||
battler.isSpecies?(:XURKITREE) ||
|
||||
battler.isSpecies?(:CELESTEELA) ||
|
||||
battler.isSpecies?(:KARTANA) ||
|
||||
battler.isSpecies?(:GUZZLORD) ||
|
||||
battler.isSpecies?(:POIPOLE) ||
|
||||
battler.isSpecies?(:NAGANADEL) ||
|
||||
battler.isSpecies?(:STAKATAKA) ||
|
||||
battler.isSpecies?(:BLACEPHALON))
|
||||
if !ultraBeast || isConst?(ball,PBItems,:BEASTBALL)
|
||||
rareness = BallHandlers.modifyCatchRate(ball,rareness,self,battler,ultraBeast)
|
||||
else
|
||||
|
||||
@@ -157,7 +157,7 @@ class PokeBattle_Battle
|
||||
side = battler.idxOwnSide
|
||||
owner = pbGetOwnerIndexFromBattlerIndex(idxBattler)
|
||||
@megaEvolution[side][owner] = -2
|
||||
if isConst?(battler.species,PBSpecies,:GENGAR) && battler.mega?
|
||||
if battler.isSpecies?(:GENGAR) && battler.mega?
|
||||
battler.effects[PBEffects::Telekinesis] = 0
|
||||
end
|
||||
pbCalculatePriority(false,[idxBattler]) if NEWEST_BATTLE_MECHANICS
|
||||
@@ -172,9 +172,9 @@ class PokeBattle_Battle
|
||||
battler = @battlers[idxBattler]
|
||||
return if !battler || !battler.pokemon
|
||||
return if !battler.hasPrimal? || battler.primal?
|
||||
if isConst?(battler.pokemon.species,PBSpecies,:KYOGRE)
|
||||
if battler.isSpecies?(:KYOGRE)
|
||||
pbCommonAnimation("PrimalKyogre",battler)
|
||||
elsif isConst?(battler.pokemon.species,PBSpecies,:GROUDON)
|
||||
elsif battler.isSpecies?(:GROUDON)
|
||||
pbCommonAnimation("PrimalGroudon",battler)
|
||||
end
|
||||
battler.pokemon.makePrimal
|
||||
@@ -182,9 +182,9 @@ class PokeBattle_Battle
|
||||
battler.pbUpdate(true)
|
||||
@scene.pbChangePokemon(battler,battler.pokemon)
|
||||
@scene.pbRefreshOne(idxBattler)
|
||||
if isConst?(battler.pokemon.species,PBSpecies,:KYOGRE)
|
||||
if battler.isSpecies?(:KYOGRE)
|
||||
pbCommonAnimation("PrimalKyogre2",battler)
|
||||
elsif isConst?(battler.pokemon.species,PBSpecies,:GROUDON)
|
||||
elsif battler.isSpecies?(:GROUDON)
|
||||
pbCommonAnimation("PrimalGroudon2",battler)
|
||||
end
|
||||
pbDisplay(_INTL("{1}'s Primal Reversion!\nIt reverted to its primal form!",battler.pbThis))
|
||||
|
||||
Reference in New Issue
Block a user