Fixed finding entities finding themselves when targeting their type

This commit is contained in:
trotFunky 2019-06-10 23:22:43 +02:00
parent 2d8b1e53ce
commit 8199b7d036

View file

@ -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<pro_maat::GridPos> potentialTargets{};