fix ai switch semi invulnerable
This commit is contained in:
1 parent
133aa9e28d
commit
20190ac85a
1 file changed
+2
-1
@@ -370,7 +370,7 @@ static bool8 ShouldSwitchIfGameStatePrompt(void)
|
||||
//Pass Wish Heal
|
||||
|
||||
//Semi-Invulnerable
|
||||
if (gStatuses3[opposingBattler] & STATUS3_SEMI_INVULNERABLE)
|
||||
if (gStatuses3[opposingBattler] & STATUS3_SEMI_INVULNERABLE) {
|
||||
if (FindMonThatAbsorbsOpponentsMove()) //If find absorber default to switch
|
||||
switchMon = TRUE;
|
||||
if (!AI_OpponentCanFaintAiWithMod(0)
|
||||
@@ -380,6 +380,7 @@ static bool8 ShouldSwitchIfGameStatePrompt(void)
|
||||
&& !WillAIStrikeFirst()
|
||||
&& !AI_OpponentCanFaintAiWithMod(0))
|
||||
switchMon = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if (switchMon)
|
||||
|
||||
Reference in new issue
Block a user