summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actorspritemanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index bbcf29090..2f8c28ad5 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -686,7 +686,9 @@ Being *ActorSpriteManager::findNearestLivingBeing(Being *aroundBeing,
bool cycleSelect = (mCyclePlayers && type == Being::PLAYER)
|| (mCycleMonsters && type == Being::MONSTER);
- bool filtered = config.getBoolValue("enableAttackFilter");
+ bool filtered = config.getBoolValue("enableAttackFilter")
+ && type != Being::PLAYER;
+
bool ignoreDefault = false;
if (filtered)
{