Merge pull request #1642 from ghoulslash/echoed_voice
Fix echoed voice power boost
This commit is contained in:
commit
90c837deb6
3 changed files with 5 additions and 5 deletions
|
@ -217,7 +217,6 @@ struct FieldTimer
|
|||
u8 mistyTerrainTimer;
|
||||
u8 electricTerrainTimer;
|
||||
u8 psychicTerrainTimer;
|
||||
u8 echoVoiceCounter;
|
||||
u8 gravityTimer;
|
||||
u8 fairyLockTimer;
|
||||
};
|
||||
|
|
|
@ -1743,7 +1743,7 @@ static void Cmd_ppreduce(void)
|
|||
if (!(gHitMarker & (HITMARKER_NO_PPDEDUCT | HITMARKER_NO_ATTACKSTRING)) && gBattleMons[gBattlerAttacker].pp[gCurrMovePos])
|
||||
{
|
||||
gProtectStructs[gBattlerAttacker].notFirstStrike = 1;
|
||||
// For item Metronome
|
||||
// For item Metronome, echoed voice
|
||||
if (gCurrentMove == gLastResultingMoves[gBattlerAttacker]
|
||||
&& !(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||
&& !WasUnableToUseMove(gBattlerAttacker))
|
||||
|
|
|
@ -7192,12 +7192,13 @@ static u16 CalcMoveBasePower(u16 move, u8 battlerAtk, u8 battlerDef)
|
|||
basePower = 150;
|
||||
break;
|
||||
case EFFECT_ECHOED_VOICE:
|
||||
if (gFieldTimers.echoVoiceCounter != 0)
|
||||
// gBattleStruct->sameMoveTurns incremented in ppreduce
|
||||
if (gBattleStruct->sameMoveTurns[battlerAtk] != 0)
|
||||
{
|
||||
if (gFieldTimers.echoVoiceCounter >= 5)
|
||||
if (gBattleStruct->sameMoveTurns[battlerAtk] >= 5)
|
||||
basePower *= 5;
|
||||
else
|
||||
basePower *= gFieldTimers.echoVoiceCounter;
|
||||
basePower *= gBattleStruct->sameMoveTurns[battlerAtk];
|
||||
}
|
||||
break;
|
||||
case EFFECT_PAYBACK:
|
||||
|
|
Loading…
Reference in a new issue