Skip to content

Commit

Permalink
Merge pull request #265 from besteon/staging
Browse files Browse the repository at this point in the history
Hotfix Release 6.4.2
  • Loading branch information
Fellshadow authored Oct 11, 2022
2 parents e74dd8c + 55367b0 commit 0430396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Ironmon-Tracker.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Main = {}

-- The latest version of the tracker. Should be updated with each PR.
Main.Version = { major = "6", minor = "4", patch = "1" }
Main.Version = { major = "6", minor = "4", patch = "2" }

Main.CreditsList = { -- based on the PokemonBizhawkLua project by MKDasher
CreatedBy = "Besteon",
Expand Down
8 changes: 4 additions & 4 deletions ironmon_tracker/Battle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ function Battle.updateViewSlots()
end

--Track if ally pokemon changes, to reset transform and ability changes
if prevOwnPokemonLeft ~= nil and prevOwnPokemonLeft ~= Battle.Combatants.LeftOwn then
if prevOwnPokemonLeft ~= nil and prevOwnPokemonLeft ~= Battle.Combatants.LeftOwn and Battle.BattleAbilities[0][prevOwnPokemonLeft] ~= nil then
Battle.resetAbilityMapPokemon(prevOwnPokemonLeft,true)
elseif Battle.numBattlers == 4 and prevOwnPokemonRight ~= nil and prevOwnPokemonRight ~= Battle.Combatants.RightOwn then
elseif Battle.numBattlers == 4 and prevOwnPokemonRight ~= nil and prevOwnPokemonRight ~= Battle.Combatants.RightOwn and Battle.BattleAbilities[0][prevOwnPokemonRight] ~= nil then
Battle.resetAbilityMapPokemon(prevOwnPokemonRight,true)
end
-- Pokemon on the left is not the one that was there previously
if prevEnemyPokemonLeft ~= nil and prevEnemyPokemonLeft ~= Battle.Combatants.LeftOther then
if prevEnemyPokemonLeft ~= nil and prevEnemyPokemonLeft ~= Battle.Combatants.LeftOther and Battle.BattleAbilities[1][prevEnemyPokemonLeft] then
Battle.resetAbilityMapPokemon(prevEnemyPokemonLeft,false)
Battle.changeOpposingPokemonView(true)
elseif Battle.numBattlers == 4 and prevEnemyPokemonRight ~= nil and prevEnemyPokemonRight ~= Battle.Combatants.RightOther then
elseif Battle.numBattlers == 4 and prevEnemyPokemonRight ~= nil and prevEnemyPokemonRight ~= Battle.Combatants.RightOther and Battle.BattleAbilities[1][prevEnemyPokemonRight] then
Battle.resetAbilityMapPokemon(prevEnemyPokemonRight,false)
Battle.changeOpposingPokemonView(false)
end
Expand Down

0 comments on commit 0430396

Please sign in to comment.