fixed editing spots in random role
This commit is contained in:
parent
ae1db2e1a1
commit
0c319a0a8a
2 changed files with 8 additions and 0 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue