Fix regression introduced for Eject Button
This commit is contained in:
parent
9ba31ac306
commit
fbd7d88e4f
1 changed files with 2 additions and 1 deletions
|
@ -5853,7 +5853,8 @@ static void Cmd_moveend(void)
|
|||
if (IsBattlerAlive(battler)
|
||||
&& gBattlerAttacker != battler
|
||||
&& GetBattlerHoldEffect(battler, TRUE) == HOLD_EFFECT_EJECT_BUTTON
|
||||
&& TARGET_TURN_DAMAGED
|
||||
&& !DoesSubstituteBlockMove(gBattlerAttacker, battler, gCurrentMove)
|
||||
&& (gSpecialStatuses[battler].physicalDmg != 0 || gSpecialStatuses[battler].specialDmg != 0 || gBattleStruct->enduredDamage & gBitTable[battler])
|
||||
&& CountUsablePartyMons(battler) > 0) // Has mon to switch into
|
||||
{
|
||||
gBattleScripting.battler = battler;
|
||||
|
|
Loading…
Reference in a new issue