nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
129 stars 92 forks source link

NWNX_Player_ToggleDM breaks EffectTimeStopImmunity on .35-37 #1650

Closed varenx closed 1 year ago

varenx commented 1 year ago

When using NWNX_Player_ToggleDM to remove the pseudo DM status from a player, it breaks EffectTimeStopImmunity. To test:

  1. toggle pseudo DM with NWNX_Player_ToggleDM(oPlayer, TRUE); (I have it on a chat command)
  2. Run ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectTimeStopImmunity(), OBJECT_SELF, 120.0f); from the nwscript window, OBJECT_SELF set to oPlayer.
  3. NWNX_Player_ToggleDM(oPlayer, FALSE);
  4. At this point if timestop is cast by another player or NPC, oPlayer will no longer be immune.