forked from Jaysyn/PRC8
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.
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name Dragonwrack
|
|
//:: FileName ft_dw_weap.nss
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Dragonwrack for the Vassal of Bahamut's Weapon
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Zedium
|
|
//:: Created On: 5 april 2004
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_class_const"
|
|
#include "prc_inc_racial"
|
|
#include "prc_inc_nwscript"
|
|
|
|
void main()
|
|
{
|
|
int nVassal = GetLevelByClass(CLASS_TYPE_VASSAL, OBJECT_SELF);
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int iDam;
|
|
effect eDam;
|
|
if (nVassal == 10)
|
|
{
|
|
iDam = d6(10);
|
|
}
|
|
else if (nVassal >= 7)
|
|
{
|
|
iDam = d6(3);
|
|
}
|
|
else if (nVassal >= 4)
|
|
{
|
|
iDam = d6(2);
|
|
}
|
|
eDam = EffectDamage(iDam);
|
|
if (MyPRCGetRacialType(oTarget)==RACIAL_TYPE_DRAGON)
|
|
{
|
|
if (GetAlignmentGoodEvil(oTarget)==ALIGNMENT_EVIL)
|
|
{
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
|
|
}
|
|
}
|
|
} |