Fixes to master merge
This commit is contained in:
parent
06153e4280
commit
43310716af
3 changed files with 5 additions and 5 deletions
|
@ -11633,7 +11633,7 @@ bool32 TargetFullyImmuneToCurrMove(u32 BattlerAtk, u32 battlerDef)
|
|||
GET_MOVE_TYPE(gCurrentMove, moveType);
|
||||
|
||||
return ((CalcTypeEffectivenessMultiplier(gCurrentMove, moveType, BattlerAtk, battlerDef, GetBattlerAbility(battlerDef), FALSE) == UQ_4_12(0.0))
|
||||
|| IsBattlerProtected(battlerDef, gCurrentMove)
|
||||
|| IsBattlerProtected(BattlerAtk, battlerDef, gCurrentMove)
|
||||
|| IsSemiInvulnerable(battlerDef, gCurrentMove)
|
||||
|| DoesCurrentTargetHaveAbilityImmunity());
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ AI_SINGLE_BATTLE_TEST("AI_FLAG_RISKY: AI prefers high damage moves at the expens
|
|||
|
||||
GIVEN {
|
||||
AI_FLAGS(AI_FLAG_CHECK_BAD_MOVE | AI_FLAG_CHECK_VIABILITY | AI_FLAG_TRY_TO_FAINT | aiRiskyFlag);
|
||||
PLAYER(SPECIES_GOLDEEN) { Level(5); Moves(MOVE_TACKLE); }
|
||||
PLAYER(SPECIES_PSYDUCK) { Level(5); Moves(MOVE_TACKLE); }
|
||||
OPPONENT(SPECIES_CASTFORM) { Level(20); Moves(MOVE_THUNDER, MOVE_THUNDERBOLT); }
|
||||
} WHEN {
|
||||
TURN { MOVE(player, MOVE_TACKLE); EXPECT_MOVE(opponent, aiRiskyFlag ? MOVE_THUNDER : MOVE_THUNDERBOLT); }
|
||||
|
|
|
@ -114,7 +114,7 @@ TEST("No species has two evolutions that use the evolution tracker")
|
|||
|
||||
for (i = 0; evolutions[i].method != EVOLUTIONS_END; i++)
|
||||
{
|
||||
if (evolutions[i].method == EVO_LEVEL_MOVE_TWENTY_TIMES
|
||||
if (evolutions[i].method == EVO_USE_MOVE_TWENTY_TIMES
|
||||
#ifdef EVO_DEFEAT_WITH_ITEM
|
||||
|| evolutions[i].method == EVO_DEFEAT_WITH_ITEM
|
||||
#endif //EVO_DEFEAT_WITH_ITEM
|
||||
|
@ -124,8 +124,8 @@ TEST("No species has two evolutions that use the evolution tracker")
|
|||
)
|
||||
evolutionTrackerEvolutions++;
|
||||
|
||||
if (evolutions[i].method == EVO_LEVEL_RECOIL_DAMAGE_MALE
|
||||
|| evolutions[i].method == EVO_LEVEL_RECOIL_DAMAGE_FEMALE)
|
||||
if (evolutions[i].method == EVO_RECOIL_DAMAGE_MALE
|
||||
|| evolutions[i].method == EVO_RECOIL_DAMAGE_FEMALE)
|
||||
{
|
||||
// Special handling for these since they can be combined as the evolution tracker field is used for the same purpose
|
||||
if (!hasGenderBasedRecoil)
|
||||
|
|
Loading…
Reference in a new issue