Greater Sanctuary does not work against NPCs

Moderators: Active DMs, Forum Moderators, Contributors

Post Reply
Skein
Posts: 13
Joined: Sat Dec 18, 2021 12:49 am

Greater Sanctuary does not work against NPCs

Post by Skein » Tue Jan 25, 2022 5:30 am

Description
==========

I died while in Greater Sanctuary. I checked the logs; I did not attack or otherwise perform a hostile action.

Steps to reproduce
----------------------------

While being attacked by a NPC mob, cast Greater Sanctuary

Expected result
-----------------------

They should stop attacking you; you're ethereal.

Actual result
-------------------

They knee strike your vital organs.

Screenshot:
Image

Ping14
Arelith Silver Supporter
Arelith Silver Supporter
Posts: 158
Joined: Wed Sep 15, 2021 12:41 pm

Re: Greater Sanctuary does not work against NPCs

Post by Ping14 » Tue Jan 25, 2022 8:37 am

If you're improved invisibility while using G. Sanc. Then this is the old bug in NWN. Those two should never mix.
NWN Wiki wrote:Combining this spell with improved invisibility allows creatures to ignore the etherealness of greater sanctuary. (A bug, since at least version 1.68.) Relogging into a multiplayer server will sometimes fix this bug (but may have other, possibly detrimental, effects).

User avatar
MissEvelyn
Arelith Silver Supporter
Arelith Silver Supporter
Posts: 1590
Joined: Sun Jul 12, 2015 8:43 pm

Re: Greater Sanctuary does not work against NPCs

Post by MissEvelyn » Tue Jan 25, 2022 8:02 pm

Ping14 wrote:
Tue Jan 25, 2022 8:37 am
If you're improved invisibility while using G. Sanc. Then this is the old bug in NWN. Those two should never mix.
NWN Wiki wrote:Combining this spell with improved invisibility allows creatures to ignore the etherealness of greater sanctuary. (A bug, since at least version 1.68.) Relogging into a multiplayer server will sometimes fix this bug (but may have other, possibly detrimental, effects).
A seemingly simple fix would be to dispel all invisibility effects before applying the etherealness.

If I'm not mistaken, one line like this in the Greater Sanctuary .nss file, right before the Etherealness effect is applied, should do the trick.

Code: Select all

RemoveSpecificEffect(EFFECT_TYPE_INVISIBILITY, oPC);
And if that doesn't work, looping through all the effects on oPC until it finds the right one might work 🙂


User avatar
Kenji
Arelith Platinum Supporter
Arelith Platinum Supporter
Posts: 1496
Joined: Mon May 14, 2018 9:14 am
Location: Mechanics Dungeon

Re: Greater Sanctuary does not work against NPCs

Post by Kenji » Mon Jan 31, 2022 11:49 am

The simpler and for sure way of fixing this may just be applying 100% DI to everything for the duration and tie it to the gsanc effect. So if GSanc effect is dispelled or removed, the immunity is also removed.

Still doesn't prevent the mobs from following you though.

A fix is in the pipeline.

User avatar
Morgy
Arelith Platinum Supporter
Arelith Platinum Supporter
Posts: 720
Joined: Sun Mar 31, 2019 3:08 pm

Re: Greater Sanctuary does not work against NPCs

Post by Morgy » Wed Feb 02, 2022 4:37 am

Kenji wrote:
Mon Jan 31, 2022 11:49 am
The simpler and for sure way of fixing this may just be applying 100% DI to everything for the duration and tie it to the gsanc effect. So if GSanc effect is dispelled or removed, the immunity is also removed.

Still doesn't prevent the mobs from following you though.

A fix is in the pipeline.
New counter to hellball!

User avatar
Kenji
Arelith Platinum Supporter
Arelith Platinum Supporter
Posts: 1496
Joined: Mon May 14, 2018 9:14 am
Location: Mechanics Dungeon

Re: Greater Sanctuary does not work against NPCs

Post by Kenji » Wed Feb 02, 2022 1:35 pm

Maybe it should only have phys immunity after all

User avatar
-XXX-
Posts: 2135
Joined: Tue Oct 18, 2016 1:49 am

Re: Greater Sanctuary does not work against NPCs

Post by -XXX- » Wed Feb 02, 2022 8:13 pm

No more WM helicopter whirlwind fishing for GSanced casters!

Post Reply