replaced tabs with spaces

This commit is contained in:
PhiSigma 2023-11-04 15:05:54 +01:00
parent 377a4c7372
commit 40727e708d

View File

@ -1222,16 +1222,16 @@ static void Cmd_ppreduce(void)
break;
default:
#ifdef BUGFIX
//There is an issue with asymmetrical interaction between non-ghost curse and pressure,
//since the player controller changes the target of non-ghost curse to the user,
//but the opponent controller doesn't, so the player's non-ghost curse loses 1 PP
//against and opponent with pressure, but an opponent's non-ghost curse loses 2 PP
//against a player with pressure.
//This bugfix ensures that non-ghost curse always only deducts 1 PP against pressure,
//regardless of used by the player or opponent.
//There is an issue with asymmetrical interaction between non-ghost curse and pressure,
//since the player controller changes the target of non-ghost curse to the user,
//but the opponent controller doesn't, so the player's non-ghost curse loses 1 PP
//against and opponent with pressure, but an opponent's non-ghost curse loses 2 PP
//against a player with pressure.
//This bugfix ensures that non-ghost curse always only deducts 1 PP against pressure,
//regardless of used by the player or opponent.
if (gBattlerAttacker != gBattlerTarget && gBattleMons[gBattlerTarget].ability == ABILITY_PRESSURE && !(gBattleMoves[gCurrentMove].effect == EFFECT_CURSE && gBattleMons[gBattlerAttacker].type1 != TYPE_GHOST && gBattleMons[gBattlerAttacker].type2 != TYPE_GHOST))
#else
if (gBattlerAttacker != gBattlerTarget && gBattleMons[gBattlerTarget].ability == ABILITY_PRESSURE)
if (gBattlerAttacker != gBattlerTarget && gBattleMons[gBattlerTarget].ability == ABILITY_PRESSURE)
#endif
ppToDeduct++;
break;