Update form for friendsafari vivillon

Closes #3066
This commit is contained in:
Kurt
2020-10-30 22:23:13 -07:00
parent b87975ed29
commit c9ee07e9b9

View File

@@ -26,6 +26,10 @@ public EncounterArea6XY(ICollection<int> species) : base(GameVersion.XY)
int ctr = 0;
foreach (var s in species)
slots[ctr++] = new EncounterSlot6XY(this, s, 0, 30, 30);
// Find Vivillon and replace form to be region-random
var idx = Array.FindIndex(slots, z => z.Species == (int)Species.Vivillon);
slots[idx] = new EncounterSlot6XY(this, (int)Species.Vivillon, 30, 30, 30);
Slots = slots;
}