mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
[Beta][Bug] Fix ribbon pre-evolution award not using prevoid (#6283)
Fix ribbon pre-evolution award not using prevoid Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
This commit is contained in:
parent
a5190396fa
commit
02de259554
@ -15,6 +15,6 @@ export function awardRibbonsToSpeciesLine(id: SpeciesId, ribbons: RibbonFlag): v
|
|||||||
dexData[id].ribbons.award(ribbons);
|
dexData[id].ribbons.award(ribbons);
|
||||||
// Mark all pre-evolutions of the Pokémon with the same ribbon flags.
|
// Mark all pre-evolutions of the Pokémon with the same ribbon flags.
|
||||||
for (let prevoId = pokemonPrevolutions[id]; !isNullOrUndefined(prevoId); prevoId = pokemonPrevolutions[prevoId]) {
|
for (let prevoId = pokemonPrevolutions[id]; !isNullOrUndefined(prevoId); prevoId = pokemonPrevolutions[prevoId]) {
|
||||||
dexData[id].ribbons.award(ribbons);
|
dexData[prevoId].ribbons.award(ribbons);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user