From 81e7e1efdf6568e2165269d9b26d5d64819eb4c5 Mon Sep 17 00:00:00 2001 From: Jaysyn904 <68194417+Jaysyn904@users.noreply.github.com> Date: Wed, 14 Jan 2026 23:27:19 -0500 Subject: [PATCH] 2026/01/14 Late update Soul Eater abilities should only work on creatures. Gated errant Debug statement in prc_inc_nat_hb.nss --- nwn/nwnprc/trunk/include/prc_inc_nat_hb.nss | 2 +- nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nwn/nwnprc/trunk/include/prc_inc_nat_hb.nss b/nwn/nwnprc/trunk/include/prc_inc_nat_hb.nss index 10bc2fb5..2d538acf 100644 --- a/nwn/nwnprc/trunk/include/prc_inc_nat_hb.nss +++ b/nwn/nwnprc/trunk/include/prc_inc_nat_hb.nss @@ -488,7 +488,7 @@ void DoNaturalWeaponHB(object oPC = OBJECT_SELF) if(array_exists(oPC, ARRAY_NAT_SEC_WEAP_RESREF) && !GetIsPolyMorphedOrShifted(oPC)) { - DoDebug("prc_inc_nat_hb >> DoNaturalWeaponHB: creature has natural secondary weapons"); + if(DEBUG) DoDebug("prc_inc_nat_hb >> DoNaturalWeaponHB: creature has natural secondary weapons"); UpdateSecondaryWeaponSizes(oPC); int i; while(i < array_get_size(oPC, ARRAY_NAT_SEC_WEAP_RESREF)) diff --git a/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss b/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss index 1b7a1185..2c12c804 100644 --- a/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss +++ b/nwn/nwnprc/trunk/scripts/prc_sleat_edrain.nss @@ -69,12 +69,12 @@ void main() effect eImpact = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE); int nDrain = GetLevelByClass(CLASS_TYPE_SOUL_EATER, oEater) < 7 ? 1 : 2; - // Sanity check - can't affect self or dead stuff. Also, check PvP limits - if(oTarget == oEater || - GetIsDead(oTarget) || - !spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oEater) - ) - return; + // Sanity check - can't affect self or dead stuff. Also, check PvP limits + if(oTarget == oEater || + GetIsDead(oTarget) || + !spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oEater) || + GetObjectType(oTarget) != OBJECT_TYPE_CREATURE) // NEW: Only affect creatures + return; // Let the target's AI know about hostile action SignalEvent(oTarget, EventSpellCastAt(oEater, PRCGetSpellId(), TRUE));