Skip to content

Commit

Permalink
Core: CastingHandler: remove NpcNameFinder dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Feb 11, 2022
1 parent bd37f18 commit af070c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Core/Goals/CastingHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class CastingHandler

private readonly ClassConfiguration classConfig;
private readonly IPlayerDirection direction;
private readonly NpcNameFinder npcNameFinder;
private readonly StopMoving stopMoving;

private readonly KeyAction defaultKeyAction = new KeyAction();
Expand All @@ -31,7 +30,7 @@ public class CastingHandler
private const int MaxCastTimeMs = 15000;
private const int MaxAirTimeMs = 10000;

public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, NpcNameFinder npcNameFinder, StopMoving stopMoving)
public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, StopMoving stopMoving)
{
this.logger = logger;
this.input = input;
Expand All @@ -42,7 +41,6 @@ public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonR

this.classConfig = classConfig;
this.direction = direction;
this.npcNameFinder = npcNameFinder;
this.stopMoving = stopMoving;
}

Expand Down
2 changes: 1 addition & 1 deletion Core/Goals/GoalFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public HashSet<GoapGoal> CreateGoals(ClassConfiguration classConfig, IBlacklist
var playerDirection = new PlayerDirection(logger, input, addonReader.PlayerReader);
var stopMoving = new StopMoving(input, addonReader.PlayerReader);

var castingHandler = new CastingHandler(logger, input, wait, addonReader, classConfig, playerDirection, npcNameFinder, stopMoving);
var castingHandler = new CastingHandler(logger, input, wait, addonReader, classConfig, playerDirection, stopMoving);

var stuckDetector = new StuckDetector(logger, input, addonReader.PlayerReader, playerDirection, stopMoving);
var combatUtil = new CombatUtil(logger, input, wait, addonReader.PlayerReader);
Expand Down

0 comments on commit af070c1

Please sign in to comment.