mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-09 04:13:03 -05:00
replaced tabs with spaces
This commit is contained in:
parent
377a4c7372
commit
40727e708d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user