PRC8/nwn/nwnprc/trunk/scripts/prc_ft_rngdisarm.nss
Jaysyn904 5b44c74206 20025/05/27 Late Update
Expanded Disciple of Mephistopheles for epic progression.
Expanded Disciple of Soul Eater for epic progression.
Crusader's Aura of Triumph has a range of Touch.
Swordsage's Pearl of Black Doubt may actually increase AC now.
Crusader's Steely Resolve should start back up after logging back into MP.
Hopefully Desert Wind strikes will no longer burn the wielder when using Flame Weapon.
Keen Senses should go away when leaving Hunter's Senses stance.
Moment of Prescience should be calculating bonuses correctly.
2025-05-27 22:29:19 -04:00

20 lines
616 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);
ClearAllActions();
SetLocalInt(oPC, "CombatLoopProtection", TRUE);
DelayCommand(4.0, DeleteLocalInt(oPC, "CombatLoopProtection"));
}