mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-18 04:27:38 +01:00
speed stat increases based on current stat stage
This commit is contained in:
parent
62fc47881d
commit
19b1d4bfa2
@ -3238,7 +3238,12 @@ void IncreaseStatUpScore(u8 battlerAtk, u8 battlerDef, u8 statId, s16 *score)
|
||||
break;
|
||||
case STAT_SPEED:
|
||||
if (IsAiFaster(AI_CHECK_SLOWER))
|
||||
*score += 2;
|
||||
{
|
||||
if (gBattleMons[battlerAtk].statStages[STAT_SPEED] < STAT_UP_2_STAGE)
|
||||
*score += 2;
|
||||
else if (gBattleMons[battlerAtk].statStages[STAT_SPEED] < STAT_UP_STAGE)
|
||||
*(score)++;
|
||||
}
|
||||
break;
|
||||
case STAT_SPATK:
|
||||
if (HasMoveWithSplit(battlerAtk, SPLIT_SPECIAL) && GetHealthPercentage(battlerAtk) > 40)
|
||||
|
Loading…
Reference in New Issue
Block a user