Soon we will open a ticket about this problem but i want to start reporting.
When creating an NPC with the special static ability "aura of fear" (or any other kind of aura) with the editor, the GetFirstObjectInShape and GetNextObjectInShape functions most of the time do not work.
They do not "see" the creature, it is as if it did not exist, it does not return any results, it is not a question of an invalid object.
This seems to happen at the time of spawning when there are so many creatures and if the creatures are far from the character. If the creatures are created by the DM directly in game this does not happen.
We tried to remove the aura and insert it in the onspawn event, and create it a few seconds after the creature is already in game, but the problem persists.
If instead the character starts to attack a monster without aura (and then perceives it) and only then apply the aura, this is the only case in which the function works as it should.
We lost a test to try to figure out what did not work ....
We are preparing a mini module that we will attach to the ticket where to test the problem.
In the meantime, if someone has already had the same problem (and especially if he managed to solve it) he could write here please.