fix IsAbilityPreventingEscape message in party menu
This commit is contained in:
parent
78cbbb51bb
commit
d5fe2240b8
1 changed files with 2 additions and 2 deletions
|
@ -4028,8 +4028,8 @@ static void HandleTurnActionSelectionState(void)
|
||||||
{
|
{
|
||||||
BtlController_EmitChoosePokemon(BUFFER_A, PARTY_ACTION_CANT_SWITCH, PARTY_SIZE, ABILITY_NONE, gBattleStruct->battlerPartyOrders[gActiveBattler]);
|
BtlController_EmitChoosePokemon(BUFFER_A, PARTY_ACTION_CANT_SWITCH, PARTY_SIZE, ABILITY_NONE, gBattleStruct->battlerPartyOrders[gActiveBattler]);
|
||||||
}
|
}
|
||||||
else if ((i = IsAbilityPreventingEscape(gActiveBattler)
|
else if (ItemId_GetHoldEffect(gBattleMons[gActiveBattler].item) != HOLD_EFFECT_SHED_SHELL
|
||||||
&& ItemId_GetHoldEffect(gBattleMons[gActiveBattler].item) != HOLD_EFFECT_SHED_SHELL))
|
&& (i = IsAbilityPreventingEscape(gActiveBattler))) // must be last to keep i value integrity
|
||||||
{
|
{
|
||||||
BtlController_EmitChoosePokemon(BUFFER_A, ((i - 1) << 4) | PARTY_ACTION_ABILITY_PREVENTS, PARTY_SIZE, gBattleMons[i - 1].ability, gBattleStruct->battlerPartyOrders[gActiveBattler]);
|
BtlController_EmitChoosePokemon(BUFFER_A, ((i - 1) << 4) | PARTY_ACTION_ABILITY_PREVENTS, PARTY_SIZE, gBattleMons[i - 1].ability, gBattleStruct->battlerPartyOrders[gActiveBattler]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue