From 8dc0e492cc84fdd162c0cbc2a26bde5984d44e5b Mon Sep 17 00:00:00 2001 From: Jaysyn904 <68194417+Jaysyn904@users.noreply.github.com> Date: Wed, 29 Apr 2026 09:16:25 -0400 Subject: [PATCH] 2026/04/29 Morning Update 2 Undead, constructs, vermin & oozes can't be wights. --- nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss b/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss index 83446201..2b3a2cdd 100644 --- a/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss +++ b/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss @@ -234,6 +234,16 @@ void DoDeathDependent(object oEater, object oTarget, string sResRef, string sNam if(GetResRef(oHench) == "soul_wight_test") nNumSlaves++; } while(GetIsObjectValid(oHench)); + // Check if target is a valid creature type for wight creation + int nRacialType = MyPRCGetRacialType(oTarget); + if(nRacialType == RACIAL_TYPE_VERMIN || + nRacialType == RACIAL_TYPE_OOZE || + nRacialType == RACIAL_TYPE_CONSTRUCT || + nRacialType == RACIAL_TYPE_UNDEAD) + { + // Cannot create wights from these creature types + return; + } // If we can add more wights, do so. Spawn the wight with some VFX at the corpse's location if(nNumSlaves < nMaxSlaves)