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).
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 (!GetIsReactionTypeFriendly(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);
|
|
}
|
|
} */ |