Skip to content

Commit

Permalink
use canFlee()
Browse files Browse the repository at this point in the history
  • Loading branch information
kuronekochomusuke committed Nov 28, 2024
1 parent ad90f66 commit 112c399
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ && getGame().getOptions().booleanOption(OptionsConstants.ADVAERORULES_FUEL_CONSU
}

// check for fleeing
if (md.contains(MovePath.MoveStepType.FLEE) && md.getLastStep().getPosition() == entity.getPosition()) {
if (md.contains(MovePath.MoveStepType.FLEE) && entity.canFlee(entity.getPosition())) {
addReport(gameManager.processLeaveMap(md, false, -1));
}
}
Expand Down

0 comments on commit 112c399

Please sign in to comment.