Skip to content

Commit

Permalink
fix neutralising gas visual glitch (#3746)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <[email protected]>
  • Loading branch information
DizzyEggg and AlexOn1ine authored Dec 16, 2023
1 parent 3df101a commit acec68f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions data/battle_anim_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -27383,8 +27383,6 @@ General_RestoreBg:
waitbgfadein
end

end

General_ZMoveActivate:
loadspritegfx ANIM_TAG_FOCUS_ENERGY @focus energy
loadspritegfx ANIM_TAG_Z_MOVE_SYMBOL @Z-Move Symbol
Expand Down
5 changes: 1 addition & 4 deletions data/battle_scripts_1.s
Original file line number Diff line number Diff line change
Expand Up @@ -10440,9 +10440,6 @@ BattleScript_PastelVeilLoopIncrement:
BattleScript_PastelVeilEnd:
end3

sByteFour:
.byte MAX_BATTLERS_COUNT

BattleScript_NeutralizingGasExits::
savetarget
pause B_WAIT_TIME_SHORT
Expand All @@ -10452,7 +10449,7 @@ BattleScript_NeutralizingGasExits::
BattleScript_NeutralizingGasExitsLoop:
switchinabilities BS_TARGET
addbyte gBattlerTarget, 1
jumpifbytenotequal gBattlerTarget, sByteFour, BattleScript_NeutralizingGasExitsLoop @ SOMEHOW, comparing to gBattlersCount is problematic.
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_NeutralizingGasExitsLoop
restoretarget
return

Expand Down
1 change: 0 additions & 1 deletion src/battle_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -9446,7 +9446,6 @@ static bool32 CanEvolve(u32 species)
&& SanitizeSpeciesId(evolutions[i].targetSpecies) != SPECIES_NONE)
return TRUE;
}

}
return FALSE;
}
Expand Down

0 comments on commit acec68f

Please sign in to comment.