mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 05:37:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
25
trunk/scripts/prc_sb_enxpctd.nss
Normal file
25
trunk/scripts/prc_sb_enxpctd.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
01/03/19 by Stratovarius
|
||||
|
||||
Unexpected Strike
|
||||
|
||||
Denied Dex
|
||||
*/
|
||||
|
||||
#include "prc_inc_combat"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oShadow = OBJECT_SELF;
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
|
||||
SetLocalInt(oShadow, "PRC_SB_UNEXPECTED", TRUE);
|
||||
effect eNone;
|
||||
PerformAttackRound(oTarget, oShadow, eNone, 0.0, 0, 0, 0, FALSE, "Unexpected Strike Hit", "Unexpected Strike Miss");
|
||||
DelayCommand(0.2, DeleteLocalInt(oShadow, "PRC_SB_UNEXPECTED"));
|
||||
|
||||
DecrementRemainingFeatUses(oShadow, FEAT_UNERRING_STRIKE);
|
||||
DecrementRemainingFeatUses(oShadow, FEAT_EPHEMERAL_WEAPON);
|
||||
DecrementRemainingFeatUses(oShadow, FEAT_SHADOWY_STRIKE);
|
||||
DecrementRemainingFeatUses(oShadow, FEAT_FAR_SHADOW);
|
||||
}
|
||||
Reference in New Issue
Block a user