diff --git a/src/Rule.cpp b/src/Rule.cpp index adc9737..22682fc 100644 --- a/src/Rule.cpp +++ b/src/Rule.cpp @@ -95,7 +95,7 @@ pro_maat::GridPos Rule::findTarget() for(const auto& processingEntity : sortedEntities) { - if(processingEntity->getType() != targetType) continue; + if(processingEntity->getType() != targetType || processingEntity->getPosition() == entity->getPosition()) continue; std::vector potentialTargets{};