mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-17 17:12:10 +01:00
Merge pull request #1641 from ghoulslash/power_herb
Fix Item Activation Messages
This commit is contained in:
commit
9ad4feecf2
@ -2356,6 +2356,7 @@ static void Cmd_resultmessage(void)
|
|||||||
if (gSpecialStatuses[gBattlerTarget].berryReduced
|
if (gSpecialStatuses[gBattlerTarget].berryReduced
|
||||||
&& !(gMoveResultFlags & MOVE_RESULT_NO_EFFECT))
|
&& !(gMoveResultFlags & MOVE_RESULT_NO_EFFECT))
|
||||||
{
|
{
|
||||||
|
gLastUsedItem = gBattleMons[gBattlerTarget].item;
|
||||||
gSpecialStatuses[gBattlerTarget].berryReduced = 0;
|
gSpecialStatuses[gBattlerTarget].berryReduced = 0;
|
||||||
BattleScriptPushCursor();
|
BattleScriptPushCursor();
|
||||||
gBattlescriptCurrInstr = BattleScript_PrintBerryReduceString;
|
gBattlescriptCurrInstr = BattleScript_PrintBerryReduceString;
|
||||||
@ -7288,9 +7289,14 @@ static void Cmd_various(void)
|
|||||||
return;
|
return;
|
||||||
case VARIOUS_JUMP_IF_NO_HOLD_EFFECT:
|
case VARIOUS_JUMP_IF_NO_HOLD_EFFECT:
|
||||||
if (GetBattlerHoldEffect(gActiveBattler, TRUE) != gBattlescriptCurrInstr[3])
|
if (GetBattlerHoldEffect(gActiveBattler, TRUE) != gBattlescriptCurrInstr[3])
|
||||||
|
{
|
||||||
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 4);
|
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 4);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
gLastUsedItem = gBattleMons[gActiveBattler].item; // For B_LAST_USED_ITEM
|
||||||
gBattlescriptCurrInstr += 8;
|
gBattlescriptCurrInstr += 8;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
case VARIOUS_JUMP_IF_NO_ALLY:
|
case VARIOUS_JUMP_IF_NO_ALLY:
|
||||||
if (!IsBattlerAlive(BATTLE_PARTNER(gActiveBattler)))
|
if (!IsBattlerAlive(BATTLE_PARTNER(gActiveBattler)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user