mental herb fixes

This commit is contained in:
ghoulslash 2021-09-15 12:56:58 -04:00
parent b85586a33a
commit 0bca01cb74
4 changed files with 15 additions and 15 deletions

View File

@ -7547,7 +7547,7 @@ BattleScript_BerryCureChosenStatusRet::
BattleScript_MentalHerbCureRet:: BattleScript_MentalHerbCureRet::
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
printfromtable gMentalHerbCureStringIds printfromtable gMentalHerbCureStringIds
waitmessage 0x40 waitmessage B_WAIT_TIME_LONG
updatestatusicon BS_SCRIPTING updatestatusicon BS_SCRIPTING
removeitem BS_SCRIPTING removeitem BS_SCRIPTING
copybyte gBattlerAttacker, sSAVED_BATTLER @ restore the original attacker just to be safe copybyte gBattlerAttacker, sSAVED_BATTLER @ restore the original attacker just to be safe

View File

@ -813,12 +813,12 @@
#define B_MSG_SWITCHIN_ASONE 13 #define B_MSG_SWITCHIN_ASONE 13
#define B_MSG_SWITCHIN_CURIOUS_MEDICINE 14 #define B_MSG_SWITCHIN_CURIOUS_MEDICINE 14
// mental herb // gMentalHerbCureStringIds
#define MULTI_CUREINFATUATION 0 #define B_MSG_MENTALHERBCURE_INFATUATION 0
#define MULTI_CURETAUNT 1 #define B_MSG_MENTALHERBCURE_TAUNT 1
#define MULTI_CUREENCORE 2 #define B_MSG_MENTALHERBCURE_ENCORE 2
#define MULTI_CURETORMENT 3 #define B_MSG_MENTALHERBCURE_TORMENT 3
#define MULTI_CUREHEALBLOCK 4 #define B_MSG_MENTALHERBCURE_HEALBLOCK 4
#define MULTI_CUREDISABLE 5 #define B_MSG_MENTALHERBCURE_DISABLE 5
#endif // GUARD_CONSTANTS_BATTLE_STRING_IDS_H #endif // GUARD_CONSTANTS_BATTLE_STRING_IDS_H

View File

@ -1272,12 +1272,12 @@ const u8 *const gBattleStringsTable[BATTLESTRINGS_COUNT] =
const u16 gMentalHerbCureStringIds[] = const u16 gMentalHerbCureStringIds[] =
{ {
[MULTI_CUREINFATUATION] = STRINGID_ATKGOTOVERINFATUATION, [B_MSG_MENTALHERBCURE_INFATUATION] = STRINGID_ATKGOTOVERINFATUATION,
[MULTI_CURETAUNT] = STRINGID_BUFFERENDS, [B_MSG_MENTALHERBCURE_TAUNT] = STRINGID_BUFFERENDS,
[MULTI_CUREENCORE] = STRINGID_PKMNENCOREENDED, [B_MSG_MENTALHERBCURE_ENCORE] = STRINGID_PKMNENCOREENDED,
[MULTI_CURETORMENT] = STRINGID_TORMENTEDNOMORE, [B_MSG_MENTALHERBCURE_TORMENT] = STRINGID_TORMENTEDNOMORE,
[MULTI_CUREHEALBLOCK] = STRINGID_HEALBLOCKEDNOMORE, [B_MSG_MENTALHERBCURE_HEALBLOCK] = STRINGID_HEALBLOCKEDNOMORE,
[MULTI_CUREDISABLE] = STRINGID_PKMNMOVEDISABLEDNOMORE, [B_MSG_MENTALHERBCURE_DISABLE] = STRINGID_PKMNMOVEDISABLEDNOMORE,
}; };
const u16 gTerrainStringIds[] = const u16 gTerrainStringIds[] =

View File

@ -5643,7 +5643,7 @@ static bool32 GetMentalHerbEffect(u8 battlerId)
// Check heal block // Check heal block
if (gStatuses3[battlerId] & STATUS3_HEAL_BLOCK) if (gStatuses3[battlerId] & STATUS3_HEAL_BLOCK)
{ {
gStatuses3[battlerId] & ~(STATUS3_HEAL_BLOCK); gStatuses3[battlerId] &= ~(STATUS3_HEAL_BLOCK);
gBattleCommunication[MULTISTRING_CHOOSER] = MULTI_CUREHEALBLOCK; gBattleCommunication[MULTISTRING_CHOOSER] = MULTI_CUREHEALBLOCK;
ret = TRUE; ret = TRUE;
} }