Update src/battle_util.c

Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
This commit is contained in:
ghoulslash 2021-03-09 16:35:56 -07:00 committed by GitHub
parent d5004638a9
commit 208b964a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3187,7 +3187,7 @@ u8 AtkCanceller_UnableToUseMove(void)
gBattleStruct->atkCancellerTracker++;
break;
case CANCELLER_PRANKSTER:
#if B_PRANKSTER >= GEN_7
#if B_PRANKSTER_DARK_TYPES >= GEN_7
if (GetBattlerAbility(gBattlerAttacker) == ABILITY_PRANKSTER
&& IS_MOVE_STATUS(gCurrentMove)
&& gBattlerAttacker != gBattlerTarget