Skip to content

Commit

Permalink
Fix lead ability slots modifier edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Real96 committed Jun 8, 2024
1 parent 3d170b7 commit 70e4b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Gen3/Generators/WildGenerator3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ std::vector<WildGeneratorState> WildGenerator3::generate(u32 seed) const
}
else
{
if ((lead == Lead::MagnetPull || lead == Lead::Static) && go.nextUShort(2) == 0 && !modifiedSlots.empty())
if (((lead == Lead::MagnetPull || lead == Lead::Static) && go.nextUShort(2) == 0 && !modifiedSlots.empty()) && modifiedSlots.size() != 12)
{
encounterSlot = modifiedSlots[go.nextUShort(modifiedSlots.size())];
}
Expand Down

0 comments on commit 70e4b69

Please sign in to comment.