mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-18 09:34:04 +01:00
Bugfix: only use pathfinder for monsters that are aggressive
This commit is contained in:
@@ -101,7 +101,7 @@ public final class MonsterMovementController implements EvaluateWalkable {
|
||||
}
|
||||
|
||||
private void determineMonsterNextPosition(Monster m, MonsterSpawnArea area, Coord playerPosition) {
|
||||
if (m.getMovementAggressionType() == MonsterType.AggressionType.protectSpawn) {
|
||||
if (m.getMovementAggressionType() == MonsterType.AggressionType.protectSpawn && m.isAgressive()) {
|
||||
if (area.area.contains(playerPosition)) {
|
||||
if (findPathFor(m, playerPosition)) return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user