Update NUI spellbook notes. Magic staves are quarterstaves. Champion of Torm & Eldritch Knight were missing a fighter bonus feat. Added an entry for Risen Reunited in epicspells.2da. Fixed icon for ImpCrit Goad. Unseen Seen & Ult. Magus's spellcasting marker feats names were swapped. Added more sanity checking to Luminous Armor. Updated Warforged & Warforged Chargers descriptions. Enlightened Fist requires Arcane CL 2 not 2nd Circle spells. No such thing as Luck AC in NWN. Added sanity check for Blackguard's Aura. Updated NUI spellcasting menu.
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
#include "prc_feat_const"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetAreaOfEffectCreator();
|
|
int nPen = 2;
|
|
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
|
|
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
|
|
|
|
object oTarget = GetFirstInPersistentObject(OBJECT_SELF);
|
|
while(GetIsObjectValid(oTarget))
|
|
{
|
|
// Apply the Aura of Despair penalties to hostiles only.
|
|
if (GetIsReactionTypeHostile(oTarget, oPC))
|
|
{
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
|
|
}
|
|
oTarget = GetNextInPersistentObject(OBJECT_SELF);
|
|
}
|
|
}
|
|
|
|
|
|
/* void main()
|
|
{
|
|
object oPC = GetAreaOfEffectCreator();
|
|
int nPen = 2;
|
|
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
|
|
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
|
|
|
|
object oTarget = GetFirstInPersistentObject(OBJECT_SELF);
|
|
while(GetIsObjectValid(oTarget))
|
|
{
|
|
// Apply the Aura of Despair penalties.
|
|
// Doesn't affect allies
|
|
if(!GetIsFriend(oTarget, oPC))
|
|
{
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
|
|
}
|
|
//Get next target.
|
|
oTarget = GetNextInPersistentObject(OBJECT_SELF);
|
|
}
|
|
} */ |