PRC8_fork/nwn/trunk/scripts/prc_knght_block.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

29 lines
899 B
Plaintext

//::///////////////////////////////////////////////
//:: Knight - Shield Block
//:: prc_knght_block.nss
//:://////////////////////////////////////////////
//:: Bonus with the shield vs certain monsters
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:: Created On: July 1, 2007
//:://////////////////////////////////////////////
#include "prc_alterations"
void main()
{
//Declare main variables.
object oTarget = PRCGetSpellTargetObject();
int nRace = MyPRCGetRacialType(oTarget);
int nClass = GetLevelByClass(CLASS_TYPE_KNIGHT);
int nBonus = 1;
// Bonus grows at these levels.
if (nClass > 19) nBonus = 3;
else if (nClass > 10) nBonus = 2;
effect eShield = EffectACIncrease(nBonus);
eShield = VersusRacialTypeEffect(eShield, nRace);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eShield, OBJECT_SELF, 6.0);
}