Skip to content

Commit

Permalink
code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Oct 29, 2024
1 parent f9aad69 commit c7d9c9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static bool AreaSkillSettingsAreDefault([NotNullWhen(true)] AreaSkillSet
&& settings.MinimumNumberOfHitsPerTarget == 1
&& settings.MaximumNumberOfHitsPerTarget == 1
&& settings.MaximumNumberOfHitsPerAttack == 0
&& !(Math.Abs(settings.HitChancePerDistanceMultiplier - 1.0) > 0.00001f);
&& Math.Abs(settings.HitChancePerDistanceMultiplier - 1.0) <= 0.00001f;
}

private static IEnumerable<IAttackable> GetTargets(Player player, Point targetAreaCenter, Skill skill, byte rotation, ushort extraTargetId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ private void AddAreaSkillSettings(
skill.AreaSkillSettings = areaSkillSettings;
skill.SkillType = SkillType.AreaSkillAutomaticHits;

if (newRange.HasValue)
{
skill.Range = newRange.Value;
}

areaSkillSettings.UseFrustumFilter = useFrustumFilter;
areaSkillSettings.FrustumStartWidth = frustumStartWidth;
areaSkillSettings.FrustumEndWidth = frustumEndWidth;
Expand Down

0 comments on commit c7d9c9d

Please sign in to comment.