From 80057fc990d1b437b61189d43dd12c51f0a9ffd4 Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Sun, 7 Aug 2022 10:19:03 -0300 Subject: [PATCH] Update battle_z_move.c --- src/battle_z_move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_z_move.c b/src/battle_z_move.c index db00d8d7c..4170b720e 100644 --- a/src/battle_z_move.c +++ b/src/battle_z_move.c @@ -212,7 +212,7 @@ bool32 IsViableZMove(u8 battlerId, u16 move) if (move != MOVE_NONE && zMove != MOVE_Z_STATUS && gBattleMoves[move].type == ItemId_GetSecondaryId(item)) { - if (IS_MOVE_STATUS(gBattleMoves[move].split)) + if (IS_MOVE_STATUS(move)) gBattleStruct->zmove.chosenZMove = move; else gBattleStruct->zmove.chosenZMove = GetTypeBasedZMove(move, battlerId);