mirror of
https://github.com/pret/pokeemerald.git
synced 2026-04-26 01:19:29 -05:00
Fixes transformed mon being able to use tera on Terapagos (#6528)
This commit is contained in:
parent
ff8bf967d4
commit
1e38c36912
|
|
@ -62,7 +62,10 @@ void ApplyBattlerVisualsForTeraAnim(u32 battler)
|
|||
bool32 CanTerastallize(u32 battler)
|
||||
{
|
||||
u32 holdEffect = GetBattlerHoldEffect(battler, FALSE);
|
||||
|
||||
|
||||
if (gBattleMons[battler].status2 & STATUS2_TRANSFORMED && GET_BASE_SPECIES_ID(gBattleMons[battler].species) == SPECIES_TERAPAGOS)
|
||||
return FALSE;
|
||||
|
||||
// Prevents Zigzagoon from terastalizing in vanilla.
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE && GetBattlerSide(battler) == B_SIDE_OPPONENT)
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user