Did I understand correctly that immunity to critical hits in NWN2 doesn’t give you immunity to sneak attacks, unlike PnP rules? So when I want to add proper immunity to crits, I should also specify explicitly immunity to SA. Am I right?
Quote from PHB 3.5:
Creatures with concealment, creatures without discernible anatomies, and creatures immune to extra damage from critical hits are all immune to sneak attacks.
So in NWN2 it’d look something like this:
effect eCrit = EffectImmunity(IMMUNITY_TYPE_CRITICAL_HIT);
effect eSneak = EffectImmunity(IMMUNITY_TYPE_SNEAK_ATTACK);
effect eLink = EffectLinkEffects(eCrit, eSneak);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, fDur);