Fixes status z-moves overwrting damage dealing z-moves (#2937)
This commit is contained in:
commit
2332c6d5a0
@ -215,11 +215,7 @@ bool32 IsViableZMove(u8 battlerId, u16 move)
|
|||||||
|
|
||||||
if (move != MOVE_NONE && zMove != MOVE_Z_STATUS && gBattleMoves[move].type == ItemId_GetSecondaryId(item))
|
if (move != MOVE_NONE && zMove != MOVE_Z_STATUS && gBattleMoves[move].type == ItemId_GetSecondaryId(item))
|
||||||
{
|
{
|
||||||
if (IS_MOVE_STATUS(move))
|
gBattleStruct->zmove.chosenZMove = GetTypeBasedZMove(move, battlerId);
|
||||||
gBattleStruct->zmove.chosenZMove = move;
|
|
||||||
else
|
|
||||||
gBattleStruct->zmove.chosenZMove = GetTypeBasedZMove(move, battlerId);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user