Skip to content

Commit

Permalink
be more selective with power bounce cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
JCog committed Oct 9, 2024
1 parent cef21c1 commit b2039ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fp.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ void fpUpdateCheats(void) {
pm_gPlayerStatus.playerData.curHP = 1;
}
if (CHEAT_ACTIVE(CHEAT_AUTO_MASH)) {
if (pm_gGameStatus.isBattle) {
if (pm_gGameStatus.isBattle == 1) {
pm_gActionCommandStatus.barFillLevel = 10000;
}
}
Expand All @@ -330,7 +330,9 @@ void fpUpdateCheats(void) {
pm_gActionCommandStatus.actionCommandID != 23 || pm_gActionCommandStatus.unk_5D < 14;
}
if (CHEAT_ACTIVE(CHEAT_POWER_BOUNCE)) {
pm_battle_move_power_bounce_BaseHitChance = 200;
if (pm_gBattleStatus.selectedMoveID == 0x20) {
pm_battle_move_power_bounce_BaseHitChance = 200;
}
}
if (CHEAT_ACTIVE(CHEAT_BRIGHTEN_ROOM)) {
pm_set_screen_overlay_alpha(1, 0);
Expand Down

0 comments on commit b2039ee

Please sign in to comment.