fixed editing spots in random role

This commit is contained in:
Sarah Faey 2022-12-09 23:12:30 +01:00
parent ae1db2e1a1
commit 0c319a0a8a
2 changed files with 8 additions and 0 deletions

View file

@ -303,6 +303,10 @@
{ {
_raid.Roles.Add(RaidService.CreateRandomSignUpRole(_raid.RaidType, _randomSpots)); _raid.Roles.Add(RaidService.CreateRandomSignUpRole(_raid.RaidType, _randomSpots));
} }
else
{
_raid.Roles.First(r => r.IsRandomSignUpRole).Spots = _randomSpots;
}
foreach(RaidRole role in _raid.Roles.Where(r => !r.IsRandomSignUpRole)) foreach(RaidRole role in _raid.Roles.Where(r => !r.IsRandomSignUpRole))
{ {

View file

@ -337,6 +337,10 @@
{ {
_template.Roles.Add(RaidService.CreateRandomSignUpRole(_template.RaidType, _randomSpots)); _template.Roles.Add(RaidService.CreateRandomSignUpRole(_template.RaidType, _randomSpots));
} }
else
{
_template.Roles.First(r => r.IsRandomSignUpRole).Spots = _randomSpots;
}
foreach(RaidRole role in _template.Roles.Where(r => !r.IsRandomSignUpRole)) foreach(RaidRole role in _template.Roles.Where(r => !r.IsRandomSignUpRole))
{ {