Misc fixes

This commit is contained in:
hondacrx
2020-08-20 23:21:53 -04:00
parent 35e28da605
commit 062eecf20b
6 changed files with 9 additions and 15 deletions
+4 -5
View File
@@ -3140,8 +3140,8 @@ namespace Game.Spells
if (effect == null || !effect.IsEffect())
continue;
targetMask |= effect.TargetA.GetExplicitTargetMask(srcSet, dstSet);
targetMask |= effect.TargetB.GetExplicitTargetMask(srcSet, dstSet);
targetMask |= effect.TargetA.GetExplicitTargetMask(ref srcSet, ref dstSet);
targetMask |= effect.TargetB.GetExplicitTargetMask(ref srcSet, ref dstSet);
// add explicit target flags based on spell effects which have SpellEffectImplicitTargetTypes.Explicit and no valid target provided
if (effect.GetImplicitTargetType() != SpellEffectImplicitTargetTypes.Explicit)
@@ -3723,8 +3723,7 @@ namespace Game.Spells
public int CalcValue(Unit caster = null, int? bp = null, Unit target = null, uint castItemId = 0, int itemLevel = -1)
{
float throwAway;
return CalcValue(out throwAway, caster, bp, target, castItemId, itemLevel);
return CalcValue(out _, caster, bp, target, castItemId, itemLevel);
}
public int CalcValue(out float variance, Unit caster = null, int? bp = null, Unit target = null, uint castItemId = 0, int itemLevel = -1)
@@ -4474,7 +4473,7 @@ namespace Game.Spells
return _target;
}
public SpellCastTargetFlags GetExplicitTargetMask(bool srcSet, bool dstSet)
public SpellCastTargetFlags GetExplicitTargetMask(ref bool srcSet, ref bool dstSet)
{
SpellCastTargetFlags targetMask = 0;
if (GetTarget() == Targets.DestTraj)