summaryrefslogtreecommitdiff
path: root/src/battle_util.c
diff options
context:
space:
mode:
authorkiliwily <69381603+kiliwily@users.noreply.github.com>2020-09-19 20:44:16 +0200
committerkiliwily <69381603+kiliwily@users.noreply.github.com>2020-09-19 20:44:16 +0200
commit56848fb891f55acdc98ee1b5956ffd2b1c8174eb (patch)
tree4a1495649f5d95ec9a08f2bf5716056b5f87fb20 /src/battle_util.c
parenta130c2dc4adc114a5bf57383046077f2bf66e271 (diff)
Update battle_util.c
Diffstat (limited to 'src/battle_util.c')
-rw-r--r--src/battle_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle_util.c b/src/battle_util.c
index 0c2e31e07..31ed0b3fe 100644
--- a/src/battle_util.c
+++ b/src/battle_util.c
@@ -527,8 +527,8 @@ void HandleAction_ThrowPokeblock(void)
gBattleStruct->safariPkblThrowCounter++;
if (gBattleStruct->safariEscapeFactor > 1)
{
- //BUG: The safariEscapeFactor is unintetionally able to become 0 (but it can not become negative!). This causes the pokeblock throw glitch.
- //To fix that change the < in the if statement below to <=.
+ // BUG: The safariEscapeFactor is unintetionally able to become 0 (but it can not become negative!). This causes the pokeblock throw glitch.
+ // To fix that change the < in the if statement below to <=.
if (gBattleStruct->safariEscapeFactor < sPkblToEscapeFactor[gBattleStruct->safariPkblThrowCounter][gBattleCommunication[MULTISTRING_CHOOSER]])
gBattleStruct->safariEscapeFactor = 1;
else