Update battle_util.c
This commit is contained in:
+2
-2
@@ -527,8 +527,8 @@ void HandleAction_ThrowPokeblock(void)
|
|||||||
gBattleStruct->safariPkblThrowCounter++;
|
gBattleStruct->safariPkblThrowCounter++;
|
||||||
if (gBattleStruct->safariEscapeFactor > 1)
|
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.
|
// 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 <=.
|
// To fix that change the < in the if statement below to <=.
|
||||||
if (gBattleStruct->safariEscapeFactor < sPkblToEscapeFactor[gBattleStruct->safariPkblThrowCounter][gBattleCommunication[MULTISTRING_CHOOSER]])
|
if (gBattleStruct->safariEscapeFactor < sPkblToEscapeFactor[gBattleStruct->safariPkblThrowCounter][gBattleCommunication[MULTISTRING_CHOOSER]])
|
||||||
gBattleStruct->safariEscapeFactor = 1;
|
gBattleStruct->safariEscapeFactor = 1;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user