mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed typo in Duel minigame, fixed crash when battling a single trainer while you have a
This commit is contained in:
@@ -48,7 +48,7 @@ class PokeBattle_Move_003 < PokeBattle_SleepMove
|
|||||||
return if !isConst?(@id,PBMoves,:RELICSONG)
|
return if !isConst?(@id,PBMoves,:RELICSONG)
|
||||||
return if !user.isSpecies?(:MELOETTA)
|
return if !user.isSpecies?(:MELOETTA)
|
||||||
return if user.hasActiveAbility?(:SHEERFORCE) && @addlEffect>0
|
return if user.hasActiveAbility?(:SHEERFORCE) && @addlEffect>0
|
||||||
newForm = (oldForm+1)%2
|
newForm = (user.Form+1)%2
|
||||||
user.pbChangeForm(newForm,_INTL("{1} transformed!",user.pbThis))
|
user.pbChangeForm(newForm,_INTL("{1} transformed!",user.pbThis))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -266,6 +266,7 @@ def pbWildBattleCore(*args)
|
|||||||
$Trainer.party.each { |pkmn| playerParty.push(pkmn) }
|
$Trainer.party.each { |pkmn| playerParty.push(pkmn) }
|
||||||
playerPartyStarts.push(playerParty.length)
|
playerPartyStarts.push(playerParty.length)
|
||||||
ally.party.each { |pkmn| playerParty.push(pkmn) }
|
ally.party.each { |pkmn| playerParty.push(pkmn) }
|
||||||
|
setBattleRule("double") if !$PokemonTemp.battleRules["size"]
|
||||||
end
|
end
|
||||||
# Create the battle scene (the visual side of it)
|
# Create the battle scene (the visual side of it)
|
||||||
scene = pbNewBattleScene
|
scene = pbNewBattleScene
|
||||||
@@ -411,6 +412,7 @@ def pbTrainerBattleCore(*args)
|
|||||||
$Trainer.party.each { |pkmn| playerParty.push(pkmn) }
|
$Trainer.party.each { |pkmn| playerParty.push(pkmn) }
|
||||||
playerPartyStarts.push(playerParty.length)
|
playerPartyStarts.push(playerParty.length)
|
||||||
ally.party.each { |pkmn| playerParty.push(pkmn) }
|
ally.party.each { |pkmn| playerParty.push(pkmn) }
|
||||||
|
setBattleRule("double") if !$PokemonTemp.battleRules["size"]
|
||||||
end
|
end
|
||||||
# Create the battle scene (the visual side of it)
|
# Create the battle scene (the visual side of it)
|
||||||
scene = pbNewBattleScene
|
scene = pbNewBattleScene
|
||||||
|
|||||||
@@ -183,7 +183,8 @@ EncounterModifier.register(proc { |encounter|
|
|||||||
# are in the same region
|
# are in the same region
|
||||||
if roamerMap!=$game_map.map_id
|
if roamerMap!=$game_map.map_id
|
||||||
currentRegion = pbGetCurrentRegion
|
currentRegion = pbGetCurrentRegion
|
||||||
next if pbGetMetadata(roamerMap,MetadataMapPosition)[0]!=currentRegion
|
map_position = pbGetMetadata(roamerMap,MetadataMapPosition)
|
||||||
|
next if !map_position || map_position[0] != currentRegion
|
||||||
currentMapName = pbGetMessage(MessageTypes::MapNames,$game_map.map_id)
|
currentMapName = pbGetMessage(MessageTypes::MapNames,$game_map.map_id)
|
||||||
next if pbGetMessage(MessageTypes::MapNames,roamerMap)!=currentMapName
|
next if pbGetMessage(MessageTypes::MapNames,roamerMap)!=currentMapName
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class PokemonDuel
|
|||||||
@sprites["player"].x += distance_per_frame
|
@sprites["player"].x += distance_per_frame
|
||||||
@sprites["playerwindow"].x += distance_per_frame
|
@sprites["playerwindow"].x += distance_per_frame
|
||||||
@sprites["opponent"].x -= distance_per_frame
|
@sprites["opponent"].x -= distance_per_frame
|
||||||
@sprites["opponentwindow"].x -= distandistance_per_framecePerFrame
|
@sprites["opponentwindow"].x -= distance_per_frame
|
||||||
Graphics.update
|
Graphics.update
|
||||||
Input.update
|
Input.update
|
||||||
pbUpdateSceneMap
|
pbUpdateSceneMap
|
||||||
|
|||||||
Reference in New Issue
Block a user