Fix confusion not working at all (#385)
This commit is contained in:
parent
4c5de0998a
commit
12b08670f1
1 changed files with 1 additions and 1 deletions
|
@ -2311,7 +2311,7 @@ u8 AtkCanceller_UnableToUseMove(void)
|
||||||
gBattleMons[gBattlerAttacker].status2--;
|
gBattleMons[gBattlerAttacker].status2--;
|
||||||
if (gBattleMons[gBattlerAttacker].status2 & STATUS2_CONFUSION)
|
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;
|
gBattleCommunication[MULTISTRING_CHOOSER] = 1;
|
||||||
gBattlerTarget = gBattlerAttacker;
|
gBattlerTarget = gBattlerAttacker;
|
||||||
|
|
Loading…
Reference in a new issue