Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NWNX_Player_PossessCreature() - bMindImmune param doesn't work #1675

Open
egebilecen opened this issue Jun 25, 2023 · 1 comment
Open

NWNX_Player_PossessCreature() - bMindImmune param doesn't work #1675

egebilecen opened this issue Jun 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@egebilecen
Copy link

NWNX_Player_PossessCreature(), third param bMindImmune's value doesn't seem to doing anything. Setting it to FALSE still makes the possessor mind immune. When a creature is possessed and then it's unpossessed, the possessor is also left with a mind immunity effect that can't be found with regular effect loop. Even NWNX_Effect_GetTrueEffect() fails to find it.

@Daztek Daztek added the bug Something isn't working label Nov 16, 2023
@BhaalM
Copy link
Contributor

BhaalM commented Oct 14, 2024

If calling NWNX_Player_PossessCreature from a spell script, the immune effect will have its spellid parameter set, and it seems the nwnx code only remove the immune effect if it has no spellid.

If this is your case, you can call the NWNX_Player_PossessCreature outside the spell script with a DelayCommand(0.0, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants