mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Don't allow telekinesis on actors or teleport doors
This commit is contained in:
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…
x
Reference in New Issue
Block a user