Fix Safari zone bug
This commit is contained in:
parent
897592a8d4
commit
6653ecf676
2 changed files with 2 additions and 2 deletions
|
@ -2547,7 +2547,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
||||||
u8 target1;
|
u8 target1;
|
||||||
|
|
||||||
if (gBattleTypeFlags & BATTLE_TYPE_SAFARI)
|
if (gBattleTypeFlags & BATTLE_TYPE_SAFARI)
|
||||||
return;
|
return 0;
|
||||||
|
|
||||||
if (gBattlerAttacker >= gBattlersCount)
|
if (gBattlerAttacker >= gBattlersCount)
|
||||||
gBattlerAttacker = battler;
|
gBattlerAttacker = battler;
|
||||||
|
|
|
@ -584,7 +584,7 @@ bool8 StandardWildEncounter(u16 currMetaTileBehavior, u16 previousMetaTileBehavi
|
||||||
// try a regular wild land encounter
|
// try a regular wild land encounter
|
||||||
if (TryGenerateWildMon(gWildMonHeaders[headerId].landMonsInfo, WILD_AREA_LAND, WILD_CHECK_REPEL | WILD_CHECK_KEEN_EYE) == TRUE)
|
if (TryGenerateWildMon(gWildMonHeaders[headerId].landMonsInfo, WILD_AREA_LAND, WILD_CHECK_REPEL | WILD_CHECK_KEEN_EYE) == TRUE)
|
||||||
{
|
{
|
||||||
if (USE_BATTLE_DEBUG && GetMonsStateToDoubles() == PLAYER_HAS_TWO_USABLE_MONS)
|
if (USE_BATTLE_DEBUG && !GetSafariZoneFlag() && GetMonsStateToDoubles() == PLAYER_HAS_TWO_USABLE_MONS)
|
||||||
{
|
{
|
||||||
struct Pokemon mon1 = gEnemyParty[0];
|
struct Pokemon mon1 = gEnemyParty[0];
|
||||||
TryGenerateWildMon(gWildMonHeaders[headerId].landMonsInfo, WILD_AREA_LAND, WILD_CHECK_KEEN_EYE);
|
TryGenerateWildMon(gWildMonHeaders[headerId].landMonsInfo, WILD_AREA_LAND, WILD_CHECK_KEEN_EYE);
|
||||||
|
|
Loading…
Reference in a new issue