mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
add check for Gorilla Tactics when resetting choicedMove from knock off (#2854)
This commit is contained in:
parent
e176fd285e
commit
69f58adbb2
@ -5304,7 +5304,8 @@ static bool32 TryKnockOffBattleScript(u32 battlerDef)
|
|||||||
|
|
||||||
gLastUsedItem = gBattleMons[battlerDef].item;
|
gLastUsedItem = gBattleMons[battlerDef].item;
|
||||||
gBattleMons[battlerDef].item = 0;
|
gBattleMons[battlerDef].item = 0;
|
||||||
gBattleStruct->choicedMove[battlerDef] = 0;
|
if (gBattleMons[battlerDef].ability != ABILITY_GORILLA_TACTICS)
|
||||||
|
gBattleStruct->choicedMove[battlerDef] = 0;
|
||||||
gWishFutureKnock.knockedOffMons[side] |= gBitTable[gBattlerPartyIndexes[battlerDef]];
|
gWishFutureKnock.knockedOffMons[side] |= gBitTable[gBattlerPartyIndexes[battlerDef]];
|
||||||
CheckSetUnburden(battlerDef);
|
CheckSetUnburden(battlerDef);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user