PRC8_fork/nwn/trunk/scripts/prc_ft_rngdisarm.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

19 lines
602 B
Plaintext

#include "prc_inc_combmove"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
if (oTarget == oPC) return; // No hitting yourself
if (GetLocalInt(oPC, "CombatLoopProtection")) return; // Stop the damn loop
int nBonus = 0;
// This counteracts the bonus from Improved Disarm if the PC has it
if (GetHasFeat(FEAT_PRC_IMP_DISARM, oPC)) nBonus -= 4;
DoDisarm(oPC, oTarget, nBonus, FALSE, FALSE);
SetLocalInt(oPC, "CombatLoopProtection", TRUE);
DelayCommand(4.0, DeleteLocalInt(oPC, "CombatLoopProtection"));
}