PRC8/nwn/nwnprc/trunk/scripts/prc_sb_unerrng.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

25 lines
709 B
Plaintext

/*
01/03/19 by Stratovarius
Unerring Strike
Ignore Concealment
*/
#include "prc_inc_combat"
void main()
{
object oShadow = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
SetLocalInt(oShadow, "PRC_SB_UNERRING", TRUE);
effect eNone;
PerformAttackRound(oTarget, oShadow, eNone, 0.0, 0, 0, 0, FALSE, "Unerring Strike Hit", "Unerring Strike Miss");
DelayCommand(0.2, DeleteLocalInt(oShadow, "PRC_SB_UNERRING"));
DecrementRemainingFeatUses(oShadow, FEAT_UNEXPECTED_STRIKE);
DecrementRemainingFeatUses(oShadow, FEAT_EPHEMERAL_WEAPON);
DecrementRemainingFeatUses(oShadow, FEAT_SHADOWY_STRIKE);
DecrementRemainingFeatUses(oShadow, FEAT_FAR_SHADOW);
}