Merge pull request #2681 from DizzyEggg/jaw_lock

Fix Jaw Lock locking player pokemon
This commit is contained in:
ghoulslash 2023-02-13 10:40:47 -05:00 committed by GitHub
commit 094554b3a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3634,7 +3634,7 @@ void SetMoveEffect(bool32 primary, u32 certain)
BattleScriptPush(gBattlescriptCurrInstr + 1);
gBattlescriptCurrInstr = BattleScript_BothCanNoLongerEscape;
}
if (!gBattleMons[gBattlerTarget].status2 & STATUS2_ESCAPE_PREVENTION)
if (!(gBattleMons[gBattlerTarget].status2 & STATUS2_ESCAPE_PREVENTION))
gDisableStructs[gBattlerTarget].battlerPreventingEscape = gBattlerAttacker;
if (!(gBattleMons[gBattlerAttacker].status2 & STATUS2_ESCAPE_PREVENTION))