Fixes loading into server/creating new character.

This commit is contained in:
hondacrx
2021-08-31 13:20:06 -04:00
parent 4e03358392
commit cdd34e644a
3 changed files with 17 additions and 14 deletions
+10
View File
@@ -2705,7 +2705,12 @@ namespace Game.Spells
}
foreach (Unit unit in units)
{
if (!targets.ContainsKey(unit))
targets[unit] = 0;
targets[unit] |= 1u << (int)effect.EffectIndex;
}
}
}
@@ -2781,7 +2786,12 @@ namespace Game.Spells
targetList.RemoveAll(unit => !unit.IsSelfOrInSameMap(GetDynobjOwner()));
foreach (var unit in targetList)
{
if (!targets.ContainsKey(unit))
targets[unit] = 0;
targets[unit] |= 1u << (int)effect.EffectIndex;
}
}
}
}