forked from teamnwah/openmw-tes3coop
Don't allow telekinesis on actors or teleport doors
This commit is contained in:
parent
1b3cde9b8d
commit
b29e9e9c77
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue