Skip to content

Commit

Permalink
Fix Brick Break
Browse files Browse the repository at this point in the history
Should remove the target's screens, not the attacker's.
  • Loading branch information
BuffelSaft committed Nov 22, 2021
1 parent 0f801b1 commit 8118f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/battle_script_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -13120,7 +13120,8 @@ static void Cmd_removelightscreenreflect(void) // brick break
bool32 failed;

#if B_BRICK_BREAK >= GEN_4
side = GetBattlerSide(gBattlerAttacker);
// From Gen 4 onwards, Brick Break can remove screens on the user's side if used on an ally
side = GetBattlerSide(gBattlerTarget);
#else
side = GetBattlerSide(gBattlerAttacker) ^ BIT_SIDE;
#endif
Expand Down

0 comments on commit 8118f3b

Please sign in to comment.