Cleaned up move effect checks for Dragon Tail/Circle Throw

This commit is contained in:
Eduardo Quezada 2022-11-05 23:51:59 -03:00
parent 1da4eb3b14
commit 712d41c752

View file

@ -5718,8 +5718,7 @@ static void Cmd_moveend(void)
break; break;
} }
case MOVEEND_EJECT_BUTTON: case MOVEEND_EJECT_BUTTON:
if (gCurrentMove != MOVE_DRAGON_TAIL if (gBattleMoves[gCurrentMove].effect != EFFECT_HIT_SWITCH_TARGET
&& gCurrentMove != MOVE_CIRCLE_THROW
&& IsBattlerAlive(gBattlerAttacker) && IsBattlerAlive(gBattlerAttacker)
&& !TestSheerForceFlag(gBattlerAttacker, gCurrentMove) && !TestSheerForceFlag(gBattlerAttacker, gCurrentMove)
&& (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER || (gBattleTypeFlags & BATTLE_TYPE_TRAINER))) && (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER || (gBattleTypeFlags & BATTLE_TYPE_TRAINER)))
@ -5752,8 +5751,7 @@ static void Cmd_moveend(void)
gBattleScripting.moveendState++; gBattleScripting.moveendState++;
break; break;
case MOVEEND_RED_CARD: case MOVEEND_RED_CARD:
if (gCurrentMove != MOVE_DRAGON_TAIL if (gBattleMoves[gCurrentMove].effect != EFFECT_HIT_SWITCH_TARGET
&& gCurrentMove != MOVE_CIRCLE_THROW
&& IsBattlerAlive(gBattlerAttacker) && IsBattlerAlive(gBattlerAttacker)
&& !TestSheerForceFlag(gBattlerAttacker, gCurrentMove)) && !TestSheerForceFlag(gBattlerAttacker, gCurrentMove))
{ {