mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
secondary id for type-z moves, fix signature z move loading
This commit is contained in:
parent
752aca7698
commit
71857f4c89
@ -186,11 +186,11 @@ bool32 IsViableZMove(u8 battlerId, u16 move)
|
||||
u16 zMove = GetSignatureZMove(move, gBattleMons[battlerId].species, item);
|
||||
if (zMove != MOVE_NONE)
|
||||
{
|
||||
gBattleStruct->zmove.currZMove = MOVE_Z_SIGNATURE; //signature z move exists
|
||||
gBattleStruct->zmove.currZMove = zMove; //signature z move exists
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (move != MOVE_NONE && zMove != MOVE_Z_SIGNATURE && gBattleMoves[move].type == ItemId_GetHoldEffectParam(item))
|
||||
if (move != MOVE_NONE && zMove != MOVE_Z_SIGNATURE && gBattleMoves[move].type == ItemId_GetSecondaryId(item))
|
||||
{
|
||||
if (gBattleMoves[move].split == SPLIT_STATUS)
|
||||
gBattleStruct->zmove.currZMove = MOVE_Z_SIGNATURE;
|
||||
|
Loading…
Reference in New Issue
Block a user