Parental Bond/Bug Bite interaction
Bug Bite's effect should only occur on the final strike of Parental Bond (which can also be the first strike if it KO's the target).
This commit is contained in:
parent
e59be67023
commit
8db2e725d5
1 changed files with 2 additions and 1 deletions
|
@ -3373,7 +3373,8 @@ void SetMoveEffect(bool32 primary, u32 certain)
|
||||||
break;
|
break;
|
||||||
case MOVE_EFFECT_BUG_BITE:
|
case MOVE_EFFECT_BUG_BITE:
|
||||||
if (ItemId_GetPocket(gBattleMons[gEffectBattler].item) == POCKET_BERRIES
|
if (ItemId_GetPocket(gBattleMons[gEffectBattler].item) == POCKET_BERRIES
|
||||||
&& GetBattlerAbility(gEffectBattler) != ABILITY_STICKY_HOLD)
|
&& GetBattlerAbility(gEffectBattler) != ABILITY_STICKY_HOLD
|
||||||
|
&& !(gSpecialStatuses[gBattlerAttacker].parentalBondOn == 2 && gBattleMons[gBattlerTarget].hp != 0)) // Steal berry on final hit
|
||||||
{
|
{
|
||||||
// target loses their berry
|
// target loses their berry
|
||||||
gLastUsedItem = gBattleMons[gEffectBattler].item;
|
gLastUsedItem = gBattleMons[gEffectBattler].item;
|
||||||
|
|
Loading…
Reference in a new issue