mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 04:57:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
24
trunk/scripts/prc_ft_fightdef.nss
Normal file
24
trunk/scripts/prc_ft_fightdef.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
/* Fighting Defensively
|
||||
-4 Attack, +2 AC
|
||||
+1 extra AC if Tumble ranks >= 5
|
||||
*/
|
||||
|
||||
#include "prc_alterations"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
|
||||
if (GetHasSpellEffect(PRCGetSpellId(), oPC))
|
||||
PRCRemoveSpellEffects(PRCGetSpellId(), oPC, oPC);
|
||||
else
|
||||
{
|
||||
int nDuel = GetLevelByClass(CLASS_TYPE_DUELIST, oPC);
|
||||
int nAC = 2;
|
||||
if (GetSkillRank(SKILL_TUMBLE, oPC, TRUE) >= 5) nAC++;
|
||||
if (nDuel >= 7) nAC += nDuel;
|
||||
effect eLink = EffectLinkEffects(EffectACIncrease(nAC, AC_DODGE_BONUS), EffectAttackDecrease(4));
|
||||
eLink = ExtraordinaryEffect(eLink);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user