2026/01/14 Late update

Soul Eater abilities should only work on creatures.
Gated errant Debug statement in prc_inc_nat_hb.nss
This commit is contained in:
Jaysyn904
2026-01-14 23:27:19 -05:00
parent c619766db3
commit 81e7e1efdf
2 changed files with 7 additions and 7 deletions

View File

@@ -488,7 +488,7 @@ void DoNaturalWeaponHB(object oPC = OBJECT_SELF)
if(array_exists(oPC, ARRAY_NAT_SEC_WEAP_RESREF) if(array_exists(oPC, ARRAY_NAT_SEC_WEAP_RESREF)
&& !GetIsPolyMorphedOrShifted(oPC)) && !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); UpdateSecondaryWeaponSizes(oPC);
int i; int i;
while(i < array_get_size(oPC, ARRAY_NAT_SEC_WEAP_RESREF)) while(i < array_get_size(oPC, ARRAY_NAT_SEC_WEAP_RESREF))

View File

@@ -72,8 +72,8 @@ void main()
// Sanity check - can't affect self or dead stuff. Also, check PvP limits // Sanity check - can't affect self or dead stuff. Also, check PvP limits
if(oTarget == oEater || if(oTarget == oEater ||
GetIsDead(oTarget) || GetIsDead(oTarget) ||
!spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oEater) !spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oEater) ||
) GetObjectType(oTarget) != OBJECT_TYPE_CREATURE) // NEW: Only affect creatures
return; return;
// Let the target's AI know about hostile action // Let the target's AI know about hostile action