Gigantamax Flag
This commit is contained in:
parent
070ce214af
commit
644fba2db1
3 changed files with 900 additions and 747 deletions
|
@ -333,6 +333,7 @@ struct SpeciesInfo /*0x24*/
|
|||
/* 0x1F */ u8 bodyColor : 7;
|
||||
u8 noFlip : 1;
|
||||
/* 0x20 */ u16 flags;
|
||||
/* 0x22 */ u8 gigantamax:1;
|
||||
};
|
||||
|
||||
struct BattleMove
|
||||
|
|
|
@ -150,8 +150,7 @@ bool32 CanDynamax(u16 battlerId)
|
|||
// Returns whether a battler is transformed into a Gigantamax form.
|
||||
bool32 IsGigantamaxed(u16 battlerId) {
|
||||
// TODO: Incorporate Gigantamax factor.
|
||||
if (gBattleMons[battlerId].species >= (SPECIES_VENUSAUR_GMAX)
|
||||
&& gBattleMons[battlerId].species <= (SPECIES_URSHIFU_RAPID_STRIKE_STYLE_GMAX))
|
||||
if ((gSpeciesInfo[gBattleMons[battlerId].species].gigantamax))
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue