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