mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-29 13:50:42 +01:00
add check for Gorilla Tactics
knock off shouldnt reset choicedMove when the pokemon has the Gorilla Tactics ability
This commit is contained in:
parent
9ec31c61bf
commit
4541cc3319
@ -5330,6 +5330,7 @@ static bool32 TryKnockOffBattleScript(u32 battlerDef)
|
|||||||
|
|
||||||
gLastUsedItem = gBattleMons[battlerDef].item;
|
gLastUsedItem = gBattleMons[battlerDef].item;
|
||||||
gBattleMons[battlerDef].item = 0;
|
gBattleMons[battlerDef].item = 0;
|
||||||
|
if (gBattleMons[battlerDef].ability != ABILITY_GORILLA_TACTICS)
|
||||||
gBattleStruct->choicedMove[battlerDef] = 0;
|
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