mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 19:54:21 +01:00
Revert "Implement Enigma Berry's hold effect" (#3298)
This commit is contained in:
parent
a02843bc3f
commit
13dedfb511
@ -6802,21 +6802,6 @@ static u8 ItemEffectMoveEnd(u32 battlerId, u16 holdEffect)
|
|||||||
case HOLD_EFFECT_SP_DEFENSE_UP:
|
case HOLD_EFFECT_SP_DEFENSE_UP:
|
||||||
effect = StatRaiseBerry(battlerId, gLastUsedItem, STAT_SPDEF, FALSE);
|
effect = StatRaiseBerry(battlerId, gLastUsedItem, STAT_SPDEF, FALSE);
|
||||||
break;
|
break;
|
||||||
case HOLD_EFFECT_ENIGMA_BERRY: // consume and heal if hit by super effective move
|
|
||||||
if (IsBattlerAlive(battlerId)
|
|
||||||
&& TARGET_TURN_DAMAGED
|
|
||||||
&& (gBattleScripting.overrideBerryRequirements
|
|
||||||
|| (!DoesSubstituteBlockMove(gBattlerAttacker, battlerId, gCurrentMove) && (gMoveResultFlags & MOVE_RESULT_SUPER_EFFECTIVE))))
|
|
||||||
{
|
|
||||||
gBattleMoveDamage = (gBattleMons[battlerId].maxHP * 25 / 100) * -1;
|
|
||||||
if (GetBattlerAbility(battlerId) == ABILITY_RIPEN)
|
|
||||||
gBattleMoveDamage *= 2;
|
|
||||||
|
|
||||||
BattleScriptPushCursor();
|
|
||||||
gBattlescriptCurrInstr = BattleScript_ItemHealHP_RemoveItemRet;
|
|
||||||
return ITEM_HP_CHANGE;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case HOLD_EFFECT_KEE_BERRY: // consume and boost defense if used physical move
|
case HOLD_EFFECT_KEE_BERRY: // consume and boost defense if used physical move
|
||||||
effect = DamagedStatBoostBerryEffect(battlerId, STAT_DEF, SPLIT_PHYSICAL);
|
effect = DamagedStatBoostBerryEffect(battlerId, STAT_DEF, SPLIT_PHYSICAL);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user