This mod fixes Stone of Alarm item, from Storm of Zehir campaign, so it actually works.
Upon use, if no enemies are nearby, player party will be able to rest as intended.
Installation:
To use this fix, just extract files from archive to your Override folder.
What was bugged anyway?
DoForceRest() function was supposed to circle through party members and force rest on every of them. To circle through party, item owner needs to be known, so that player faction can be identified.
Unfortunately, OBJECT_SELF was used for that purpose, instead of proper owner. In in this context, OBJECT_SELF is actually a module, which pretty much is not member of player faction. ;)
Switching OBJECT_SELF with GetItemActivator() did the trick.
NOTE:
Due to issue being fixed with 1.22 patch, this fix is now Obsolete.