Don't allow telekinesis on actors or teleport doors

pull/1/head
Allofich 9 years ago
parent 1b3cde9b8d
commit b29e9e9c77

@ -1025,6 +1025,10 @@ namespace MWWorld
float activationDistance = getMaxActivationDistance() + telekinesisRangeBonus;
facedObject = getFacedObject(activationDistance);
if (!facedObject.isEmpty() && !facedObject.getClass().isActor() && !facedObject.getCellRef().getTeleport())
return facedObject;
else
facedObject = getFacedObject(getMaxActivationDistance());
}
return facedObject;

Loading…
Cancel
Save