PRC8/nwn/nwnprc/trunk/scripts/prc_blkgrd_aod_a.nss
Jaysyn904 188047149c Piercing Cold now inflicts untyped damage
Piercing Cold now inflicts untyped damage.
Cleaned up Midnight Augmentation.
Dread Necromancer is an Arcane class.
Expanded  Iron Mind for epic progression.
Expanded  War Mind for epic progression.
Fixed Gloura / Bard / Sublime Chord issues.
Restored Nezumi race.
Reverted Bard Armored spellcasting (change originally made due to incorrect SRD).
Fixed Aura of Despair to only affect hostiles.
Fixed damage cap on Disintegrate.
Fixed bug where you could still wear armor under the effects of Luminous Armor.
Fixed PsyWar bug with NUI Spellcast menu (@rakiov).
2025-06-03 10:16:23 -04:00

33 lines
965 B
Plaintext

#include "prc_feat_const"
void main()
{
object oPC = GetAreaOfEffectCreator();
object oTarget = GetEnteringObject();
// Apply the Aura of Despair penalties to hostiles only.
if (!GetIsReactionTypeFriendly(oTarget, oPC))
{
int nPen = 2;
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
}
/* void main()
{
object oPC = GetAreaOfEffectCreator();
object oTarget = GetEnteringObject();
// Apply the Aura of Despair penalties.
// Doesn't affect allies
if(!GetIsFriend(oTarget, oPC))
{
int nPen = 2;
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
} */