corrections
This commit is contained in:
parent
e343c73cd8
commit
e730d64945
@ -932,5 +932,6 @@ extern bool8 gHasFetchedBall;
|
|||||||
extern u8 gLastUsedBall;
|
extern u8 gLastUsedBall;
|
||||||
extern u16 gLastThrownBall;
|
extern u16 gLastThrownBall;
|
||||||
extern bool8 gSwapDamageCategory; // Photon Geyser, Shell Side Arm, Light That Burns the Sky
|
extern bool8 gSwapDamageCategory; // Photon Geyser, Shell Side Arm, Light That Burns the Sky
|
||||||
|
extern u8 gPartyCriticalHits[PARTY_SIZE];
|
||||||
|
|
||||||
#endif // GUARD_BATTLE_H
|
#endif // GUARD_BATTLE_H
|
||||||
|
|||||||
@ -5394,21 +5394,6 @@ u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 mode, u16 evolutionItem)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef BATTLE_ENGINE
|
|
||||||
// Battle evolution without leveling; party slot is being passed into the evolutionItem arg.
|
|
||||||
case EVO_MODE_BATTLE_SPECIAL:
|
|
||||||
for (i = 0; i < EVOS_PER_MON; i++)
|
|
||||||
{
|
|
||||||
switch (gEvolutionTable[species][i].method)
|
|
||||||
{
|
|
||||||
case EVO_CRITICAL_HITS:
|
|
||||||
if (gPartyCriticalHits[evolutionItem] >= gEvolutionTable[species][i].param)
|
|
||||||
targetSpecies = gEvolutionTable[species][i].targetSpecies;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return targetSpecies;
|
return targetSpecies;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user