Forgot about Primal Reversion
This commit is contained in:
parent
7ce68994ec
commit
c46e70ca82
1 changed files with 3 additions and 2 deletions
|
@ -10157,8 +10157,9 @@ bool32 CanBattlerFormChange(u8 battlerId, u16 method)
|
||||||
if (gBattleMons[battlerId].status2 & STATUS2_TRANSFORMED)
|
if (gBattleMons[battlerId].status2 & STATUS2_TRANSFORMED)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
// Mega Evolved Pokémon should always revert to normal upon fainting or ending the battle.
|
// Mega Evolved Pokémon should always revert to normal upon fainting or ending the battle.
|
||||||
if (IsBattlerMegaEvolved(battlerId)
|
if (IsBattlerMegaEvolved(battlerId) && (method == FORM_CHANGE_FAINT || method == FORM_CHANGE_END_BATTLE))
|
||||||
&& (method == FORM_CHANGE_FAINT || method == FORM_CHANGE_END_BATTLE))
|
return TRUE;
|
||||||
|
else if (IsBattlerPrimalReverted(battlerId) && (method == FORM_CHANGE_END_BATTLE))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
return DoesSpeciesHaveFormChangeMethod(gBattleMons[battlerId].species, method);
|
return DoesSpeciesHaveFormChangeMethod(gBattleMons[battlerId].species, method);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue