Another condition fix

I accidentally broke Gulp Missile's interaction with the user's Dive, lol.
This commit is contained in:
LOuroboros 2021-09-27 19:53:42 -03:00
parent a49ea33dd0
commit ceffaa4e76

View File

@ -5063,9 +5063,8 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
break;
case ABILITY_GULP_MISSILE:
if ((effect = ShouldChangeFormHpBased(gBattlerAttacker))
&& (gCurrentMove == MOVE_SURF || gStatuses3[gBattlerAttacker] & STATUS3_UNDERWATER)
&& TARGET_TURN_DAMAGED
&& IsBattlerAlive(gBattlerAttacker))
&& ((gCurrentMove == MOVE_SURF && TARGET_TURN_DAMAGED) || gStatuses3[gBattlerAttacker] & STATUS3_UNDERWATER)
&& IsBattlerAlive(gBattlerTarget))
{
BattleScriptPushCursor();
gBattlescriptCurrInstr = BattleScript_AttackerFormChange;