Cleaned up move effect checks for Dragon Tail/Circle Throw
This commit is contained in:
parent
1da4eb3b14
commit
712d41c752
1 changed files with 2 additions and 4 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue