Fix confusion not working at all (#385)

This commit is contained in:
AJ Fontaine 2020-05-24 04:02:58 -04:00 committed by GitHub
parent 4c5de0998a
commit 12b08670f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2311,7 +2311,7 @@ u8 AtkCanceller_UnableToUseMove(void)
gBattleMons[gBattlerAttacker].status2--;
if (gBattleMons[gBattlerAttacker].status2 & STATUS2_CONFUSION)
{
if (Random() % ((B_CONFUSION_SELF_DMG_CHANCE >= GEN_7) ? 3 : 2 == 0)) // confusion dmg
if (Random() % ((B_CONFUSION_SELF_DMG_CHANCE >= GEN_7) ? 3 : 2) == 0) // confusion dmg
{
gBattleCommunication[MULTISTRING_CHOOSER] = 1;
gBattlerTarget = gBattlerAttacker;