|
|
|
@ -1030,7 +1030,7 @@ namespace MWWorld
|
|
|
|
|
// Not allowing telekinesis on actors, on doors that teleport to other cells, or on activators
|
|
|
|
|
// Original engine doesn't allow telekinesis on books or lights, either
|
|
|
|
|
if (!facedObject.isEmpty() && (facedObject.getClass().isActor()
|
|
|
|
|
|| facedObject.getCellRef().getTeleport() || facedObject.getClass().getTypeName() == "struct ESM::Activator")
|
|
|
|
|
|| facedObject.getCellRef().getTeleport() || facedObject.getClass().getTypeName() == typeid(ESM::Activator).name())
|
|
|
|
|
&& (distanceToObject > getMaxActivationDistance()))
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|