mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
Fix Baton Pass for when Ace mon is the last alive (#3067)
* Updated preproc config for Diamond Storm * Fix baton pass bug with IsAceMon remove not needed check --------- Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
parent
97bc8e4689
commit
43821d606f
@ -989,9 +989,8 @@ u8 GetMostSuitableMonToSwitchInto(void)
|
|||||||
if (bestMonId != PARTY_SIZE)
|
if (bestMonId != PARTY_SIZE)
|
||||||
return bestMonId;
|
return bestMonId;
|
||||||
|
|
||||||
// If ace mon is the last available Pokemon and U-Turn/Volt Switch was used - switch to the mon.
|
// If ace mon is the last available Pokemon and switch move was used - switch to the mon.
|
||||||
if (aceMonId != PARTY_SIZE
|
if (aceMonId != PARTY_SIZE)
|
||||||
&& (gBattleMoves[gLastUsedMove].effect == EFFECT_HIT_ESCAPE || gBattleMoves[gLastUsedMove].effect == EFFECT_PARTING_SHOT))
|
|
||||||
return aceMonId;
|
return aceMonId;
|
||||||
|
|
||||||
return PARTY_SIZE;
|
return PARTY_SIZE;
|
||||||
|
@ -9895,7 +9895,7 @@ const struct BattleMove gBattleMoves[MOVES_COUNT_Z] =
|
|||||||
|
|
||||||
[MOVE_DIAMOND_STORM] =
|
[MOVE_DIAMOND_STORM] =
|
||||||
{
|
{
|
||||||
#if B_UPDATED_MOVE_DATA >= GEN_4
|
#if B_UPDATED_MOVE_DATA >= GEN_7
|
||||||
.effect = EFFECT_DEFENSE_UP2_HIT,
|
.effect = EFFECT_DEFENSE_UP2_HIT,
|
||||||
#else
|
#else
|
||||||
.effect = EFFECT_DEFENSE_UP_HIT,
|
.effect = EFFECT_DEFENSE_UP_HIT,
|
||||||
|
Loading…
Reference in New Issue
Block a user