PRC8/trunk/scripts/prc_ft_rngdisarm.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -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"));
}