Sheer Force and Shield Dust do not affect the correct moves #3055
Labels
bug
Bug
category: battle-mechanic
Pertains to battle mechanics
status: unconfirmed
This bug has not been reproduced yet
Description
Sheer Force does not negate effects that benefit the user, due to this line in battle_script_commands.c:
if (TestSheerForceFlag(gBattlerAttacker, gCurrentMove) && affectsUser != MOVE_EFFECT_AFFECTS_USER)
This applies to Flame Charge, Charge Beam, Diamond Storm, Power-Up Punch, etc.
Shield Dust decides which effects to block based on the order of the move effect definitions:
&& (gBattleScripting.moveEffect <= MOVE_EFFECT_TRI_ATTACK || gBattleScripting.moveEffect >= MOVE_EFFECT_SMACK_DOWN)) // Exclude stat lowering effects
I suspect this was not considered/updated when adding new effects (I certainly didn't know it was there), so this is not working correctly.
This was also discussed in the discord, starting here: https://discord.com/channels/419213663107416084/774393519569502268/1117747437436665886
Version
1.5.0 (Default)
Upcoming Version
No response
Discord contact info
buffelsaft
The text was updated successfully, but these errors were encountered: